Question: Convert total _ dollars to 5 0 - dollar bills, 5 - dollar bills, and one - dollar bills, finding the maximum number of 5

Convert total_dollars to 50-dollar bills, 5-dollar bills, and one-dollar bills, finding the maximum number of 50-dollar bills, then 5 dollar bills, then one-dollar bills.,
Click here for example
Ex: If the input is 58, then the output is:
50-dollar bills: 1
5-dollar bills: 1
One-dollar bills: 3
Note: A 50-dollar bill is 50 one-dollar bills. A 5-dollar bill is 5 one-dollar bills.
1 total_dollars = int (input ())
2
3|
4
print('50-dollar bills:', num_fifties)
print('5-dollar bills:', num_fives)
print('One-dollar bills:', num_ones)
 Convert total_dollars to 50-dollar bills, 5-dollar bills, and one-dollar bills, finding

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!