Good idea! I made my code this:
and also this:Code:double bill, paid, dollars = (paid - bill);
Problem is, when I'm testing the program, it says "The most efficient way to get your change would be to get:", then nothing. Then it says the program stopped working. Basically, it crashes.Code:cout << "The most efficient way to get your change would be to get:" << endl;
cout << setprecision(0) << fixed << dollars << " dollars, " << endl;