Write a program to read a positive integer value less than 100 that represents the number of cents, and to output the change starting with the maximum number of quarters, then dimes, nickels, and pennies. After you output the following prompt and then read the input value, Enter the amount in cents: 99 (from the keyboard) The output of your program must look like the following: The change is as follows: Quarters: 3 Dimes: 2 Nickels: 0 Pennies: 4
Write a program to read a positive integer value less than 100 that represents the number of cents, and to output the change starting with the maximum number of quarters, then dimes, nickels, and pennies. After you output the following prompt and then read the input value,
Enter the amount in cents: 99 (from the keyboard)
The output of your program must look like the following:
The change is as follows:
Quarters: 3
Dimes: 2
Nickels: 0
Pennies: 4
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images