I need to read an integer value and calculate the smallest number of possible banknotes in which the value can be decomposed. The grades considered are 100, 50, 20, 10, 5, 2 and 1.
And dps print the read value and then the minimum amount of notes of each type needed.
EXAMPLE:
- input
576
- output
R $ 576
5 rating (s) of $ 100.00
1 rating (s) of $ 50.00
1 note (s) of R $ 20.00
0 rating (s) of $ 10.00
1 rating (s) of $ 5.00
0 rating (s) of $ 2.00
1 rating (s) of $ 1.00