Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //25c
- do
- {
- printf("%d\n",change);
- change = (cash -= 25);
- if (change >= 25)
- {
- coins ++;
- }
- else
- {}
- }
- while(change >= 25);
- //10c
- do
- {
- printf("%d\n",change);
- change = (cash -= 10);
- if (change >= 10)
- {
- coins ++;
- }
- else
- {}
- }
- while(change >= 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement