I think you have another problem
Quote:
I can do this The only problem I am working on figuring out is recording the number of each bill that has been used and to subtract it for the current number.
Your code compute the best possible answer, it just don't take into account that you have to have enough banknotes to make the amount.
Your code
HundredDollarBill = cash / 100;
cash %= 100;
What you need to do is
HundredDollarBill = cash / 100;
HundredDollarBill = ...
cash -= HundredDollarBill * 100;