Question
ATM plz help for loop statment so my question is I have 1000, 2000, 5000, so the program will display like this if I need 1..............3 5..............1 10..............1 20.............1 50..............9 ATM plz help for loop statment so my question is I have 1000, 2000, 5000, so the program will display like this if I need 1..............3 5..............1 10..............1 20.............1 50..............9
Explanation / Answer
please rate - thanks don't really understand your question I think this is what your looking for #include #include using namespace std; int main () {int fifties,twenties,tens,fives,ones,amount,savedamount; coutamount; while(amount>0) {savedamount=amount; fifties=amount/50; amount%=50; twenties=amount/20; amount%=20; tens=amount/10; amount%=10; fives=amount/5; cout