Question: Must be written in C. #7 Create a function makeChange which is passed an integer amount of change in cents. It prints the change in

 Must be written in C. #7 Create a function makeChange which

Must be written in C.

#7 Create a function makeChange which is passed an integer amount of change in cents. It prints the change in quarters with the rest in nickels. It doesn't have a function value to return. You may assume that the amount of change is always a multiple of 5. Examples makeChange(80) would print 3 quarters, 1 nickels Hint: 80/25 3, 80-(3*25)- 5, 5/5 1 makeChange(65) would print 2 quarters, 3 nickels Hint: 65/25 2, 65 (2*25) 15, 15/5-3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!