Question: In this problem, you have to read an integer value and calculate the smallest possible number of banknotes in which the value may be decomposed.

In this problem, you have to read an integer value and calculate the smallest possible number of banknotes in which the value may be decomposed. The possible banknotes are 100, 50, 20, 10, 5, 2 & 1. Print the read value and the list of banknotes. Sample Input: 576 Sample Output: 5 of 100 1 of 50 1 of 20 0 of 10 1 of 5 0 of 2 1 of 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!