hey guys i'm a little stuck.
i've been told to design a program that reads a number from 5 to 55. and the program should calculate how many of each 5, 10, 20 coins will be returned.
for example, if input is 50, the program will return 2x20 and 1x10. if input is 35, the program will return 1x20 1x10 1x5
the program has to be modular in nature
how do i do this?
can someone give an example of how i can go about doing this?
thanks