Problem :- Suppose you bought some choclate. When you returning home you met some of your cousin & they took some choclate from you. But each of your cousin took double cocholate from previous one. Now write a program which can calculate how many choclate you can return home and how much choclate will need if choclate is'nt sufficient for all cousin. Input is number of choclate and cousin.
Solve:-
Output:-
Solve:-
Output:-
No comments:
Post a Comment