You are on page 1of 1

get the amount check whether it is correct or not int count=0; while (amount>.50){ amount= amount%.

50; count ++; } while (amount>.25){ amount= amount%.25; count ++; } while (amount>.05){ amount= amount%.05; count ++; } while (amount>.01){ amount= amount%.25; count ++; }

You might also like