Hi!

A friend of mine is trying to write a simulation of an ATM and can't seem to get it right.

He want's it like so:
If a user wants $100 and there are no $50 notes left, the machine gives...