Menu

Count Controlled Iteration (For Loops) - Spot the Bug

Each program has one mistake. Tap the line where the mistake is, then choose the change to that line that makes the program work.

Program 1 of 35
1. Add up the whole numbers from 1 to 5 and print the total.
it should print
15

Step 1: tap the line where the mistake is.

Log in or sign-up to find the bugs



Don't have a login?

You can still revise this topic