I have a homework assignment to turn a dollar amount into the amount of quarters, dimes, nickels and pennies. I am having trouble getting it to read all the way to pennies.

I finally got it to work. I couldn't figure out how get the remainder to be divided by the next coin amount and then have a remainder left for the pennies. I am new to this stuff and I'm trying to take it online which is basically just teaching yourself, but any pointers anyone has is gladly appreciated.:worried: