What if the change owed is greater than 50 cents?

Shall I count 50 cents as a coin or use two 25 cent coins instead?

1 Answer 1


You should only use quarters, dimes, nickles and pennies. If the input is 0.5, your program should output 2 since 50 cents contain 2 quarters.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .