How to write a program that displays the coins necessary to make the change entered by the user?

0 votes
asked by
edited by

The change can be made up of quarters, dimes, nickels, and pennies. Assume that the amount of change is less than $1.00, and use the minimum number of coins. The program output should look similar to: Enter the amount of change in cents: 68Change: Quarters: 2 Dimes: 1 Nickels: 1 Pennies: 3

1 Answer

0 votes
answered by (93.2k points)

Yes, it is possible to write a program that displays the coins necessary to make the change entered by the user as described in the program output example.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...