The loop below would never end, because nothing changes the condition. Fix it so that it adds the numbers 1 to 10. The checker has a safety limit, so that the lab itself does not hang.
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…