Question: Please write a C code in CODE blocks for this question Using branches. I will upvote if correct. * (Value: 8) Assume you are programming
Please write a C code in CODE blocks for this question Using branches. I will upvote if correct.

* (Value: 8) Assume you are programming a vending machine that only give change with. You want the machine to return change using the lowest number of coins possible. Your possible coin types are quarters, dimes, nickels and pennies. Read the quantity to return as change from the user as a floating-point number, that is using %f. Output the number of quarters, dimes, nickels and pennies you will give the user as change. For example, when the input is 2.12, you must print out: Quarters: 8 Dimes: 1 Nickels: 0 Pennies: 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
