I am a little stuck on the Greedy problem. My code passes all test but one, the .41 test. The output always comes to 3 when it should be 4. I am not sure why?
quarters += (cents / 25);
remaining = (cent % 25);
dimes += (remaining/10);
remaining = (cents % 10);
nickles += (remaining / 5);
remaining = (cents % 5);
pennies += (remaining / 1);
coin_count = quarters + dimes + nickels + pennies
Thanks,
R