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
Heres an example of how you could implement this in C c include void calculateChangeint amount int q... View full answer
Get step-by-step solutions from verified subject matter experts
