Write the change maker for the notes 100, 50, 20, 10 and 5 and coins of 1. The checker runs your steps for the amount that you set, and tests that the pieces add up to the amount.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…