I have an amount of $1.85 that I have to convert into quarters, dimes, nickels and pennies. The following is what I have come up with:
Q = Amount/25
Amount = Amount - 25 * Q
D = Amount/10
Amount = Amount - 10 * D
N = Amount/5
Amount = Amount - 5 * N
P = Amount
I want to put this in an While If Statement which I'm having problems with. How do I proceed? Thanks for any help.
