when i run the following program and input .99 as the money amount, it tells me that i used 3 quarters, 2 dimes, and 3 pennies. it should use 4 pennies.
if i modify the code so that it doesn't display the value stored in penny count and instead display the value of (moneyremain/penny) it calculates correctly and shows 4. any idea why this is happening?