ooh i got it
quarters = amount/.25f;
amount -= quarters *.25f;
cout << "You recieve " << quarters << " Quarters.\n\n" ;
dimes = amount/.10f;
cout << "You recieve " << dimes << "...
Type: Posts; User: omfg pwned
ooh i got it
quarters = amount/.25f;
amount -= quarters *.25f;
cout << "You recieve " << quarters << " Quarters.\n\n" ;
dimes = amount/.10f;
cout << "You recieve " << dimes << "...
another problem... i guess it automatically rounds up? so u end up with 0 after u subtract teh quarters
I've been working on a problem that it just boggling my mind. I need to be able to convert a given number into change (i.e. quarters, dimes, nickels, pennies.) so if i type in 3.50 i get 14...