Question: In C++ please Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type
Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line coin types are dollars, quarters, dimes, nickels, and pennies, Use singular and plural coin names as appropriate, like 1 penny vs. 2 Ex: If the input is 0 or less, output: Exc If the input is 45 , the output is: 1 quarter 2 dimes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
