Question: Write a C program that asks the user for an integer from 0-99. Then create a function that prints out the least amount of: quarters,

Write a C program that asks the user for an integer from 0-99. Then create a function that prints out the least amount of: quarters, dimes, nickels and pennies, which can be used to sum to the inputted value. 

For example if the user enters 77. The output would be 3 quarters and 2 pennies. If the user enters an invalid number continue to ask till a valid number is entered.

Step by Step Solution

3.51 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres an example of how you could implement this in C c include void calculateChangeint amount int q... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!