#include #include using namespace std; int main() { int pennies{0}, nickels{0}, dimes{0}, quarters{0}; cout << "How many pennies do you have? "; cin >> pennies; cout << "How many nickels do you have? "; cin >> nickels; cout << "How many dimes do you have? "; cin >> dimes; cout << "How many quarters do you have? "; cin >> quarters; const int totalCents {pennies * 1 + nickels * 5 + dimes * 10 + quarters * 25}; const int dollars {totalCents / 100}; const int cents {totalCents % 100}; cout << "Then you have a total of " << totalCents << " cents." << "\n"; cout << "That's " << dollars << " dollars and " << cents << " cents." << "\n"; return EXIT_SUCCESS; }