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?
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.
Sign up to join this communityYou 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.