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
Get step-by-step solutions from verified subject matter experts
