Write a program that will accept a monetary amount in euro as input and compute and display the number of each coin needed to make up the amount using the least number of coins possible.
€2, €1, 50c, 20c, 10c, 5c, 2c and 1c can be used.
I'm not sure how to write this program so any tips would be appreciated, thanks.