Question: Please help with C programming! Assume bills $100, $50, $20, $5 and $1. Write a program that reads the amount and prints how many bills

Please help with C programming!

Assume bills $100, $50, $20, $5 and $1. Write a program that reads the amount and prints how many bills we need to pay out this amount. The program will print the minimum number of bills.

An example of input: 186

The corresponding output: 1x $100 1x $50 1x $20 3x $5 1x $1

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!