There is a song that goes like this:
On the first day of Christmas, my true love sent to me a partridge
in a pear tree.
On the second day of Christmas, my true love sent to me two turtle
doves and a partridge in a pear tree.
If this goes on for the 12 days of Christmas. How many presents will
your true love send you over Christmas?
(Hint: You will need a loop inside another).
I don’t think you need a loop inside a loop… Here is what I did:
day = 0
gifts = 0
day = day + 1
gifts = gifts + day
Does anyone know how you would do it with a loop inside a loop</