Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. int t = 0, f = 0, h = 0;
  2.     if(total >= 1000)
  3.     {
  4.         for(t = 0; total >= 1000; t++)
  5.         {
  6.             total -= 1000;
  7.         }
  8.     }
  9.  
  10.     if(total >= 500)
  11.     {
  12.         for(f = 0; total >= 500; f++)
  13.         {
  14.             total -= 500;
  15.         }
  16.     }
  17.    
  18.     if(total >= 100)
  19.     {
  20.         for(h = 0; total >= 100; h++)
  21.         {
  22.             total -= 100;
  23.         }
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement