Advertisement
Guest User

Untitled

a guest
Feb 11th, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. //25c
  2. do
  3. {
  4. printf("%d\n",change);
  5. change = (cash -= 25);
  6. if (change >= 25)
  7. {
  8. coins ++;
  9. }
  10. else
  11. {}
  12. }
  13. while(change >= 25);
  14.  
  15. //10c
  16. do
  17. {
  18. printf("%d\n",change);
  19. change = (cash -= 10);
  20. if (change >= 10)
  21. {
  22. coins ++;
  23. }
  24. else
  25. {}
  26. }
  27. while(change >= 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement