r/learnprogramming • • 21m ago

Does the coding to this problem, posted earlier today, become much harder if the question were slightly changed?

https://www.reddit.com/r/learnprogramming/s/FEFi8qLoia

So, if I wanted the sum of each of the 12 gifts by the end of the 12 days of Christmas (eg sum of all golden rings, sum of all partridges in a tree, etc...) , rather than just the total sum of all gifts over 12 days, does the coding difficulty go up a lot?

1 Upvotes

3 comments sorted by

•

u/SirCarboy 17m ago

No.

Can't believe this is being posted again.

Some of you should have paid attention in math class.

•

u/lurgi 15m ago

No. I would consider this a perfectly reasonable problem to be assigned in the first couple of weeks of an introductory programming class.