Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code Challenge: Snacky Friends, a donkey, and Apples
#3
With the code I wrote, the first possible solution for number of apples bought: 79

Friend 3 ate a total of 18 apples.
Friend 2 ate a total of 24 apples.
Friend 1 ate a total of 33 apples.

The donkey ate 4 apples.

Friend 1 is a pig.

I'm not entirely convinced I got it right, so I look forward to confirmation one way or the other via other approaches.
Reply


Messages In This Thread
RE: Code Challenge: Snacky Friends, a donkey, and Apples - by CharlieJV - 08-04-2024, 04:15 AM



Users browsing this thread: 9 Guest(s)