1) Chocolate Wrapper Problem
You have Rs. 100 /- One chocolate costs Rs. 5. Every time you buy a chocolate, you get one wrapper. You can exchange 3 wrappers for 1 additional chocolate. What is the maximum number of chocolates you can have with Rs. 100?
1st Step:
2nd Step: "We use a while loop to repeat a block of code as long as a condition is true."



Top comments (0)