0

I new to the C# world. I'm currently taking a class and am having trouble with the following program.

"Write a program for an automated teller machine that dispenses money. The user should enter the amount desired (a multiple of 10 dollars) and the machine dispenses this amount using the least number of bills. The bills dispensed are 50s, 20s, and 10s. Write a function that determines how many of each kind of bill to dispense."

I think I have the first part figured out where the user enters the amount desired but I don't understand how to write the function that determines how many of each kind of bill to dispense.

Can anyone help me with this?

Thanks!