A shop sells one chocolate @ Rs.1 each, and In exchange of 3 wrappers gives one chocolate again? I want to know the C program logic for this? Have tried it, but getting wrong result.
Output should look like:
Enter the amount given to shopkeeper in Rs. 50
-> Total number of chocolates: 74
-> Wrappers remaining: 2