Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int t = 0, f = 0, h = 0;
- if(total >= 1000)
- {
- for(t = 0; total >= 1000; t++)
- {
- total -= 1000;
- }
- }
- if(total >= 500)
- {
- for(f = 0; total >= 500; f++)
- {
- total -= 500;
- }
- }
- if(total >= 100)
- {
- for(h = 0; total >= 100; h++)
- {
- total -= 100;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement