DEMO #1: In this activity, you'll see how we can use a variable inside a loop as a counter.

We use loops to repeat a step, or set of steps, in a program.

The range in a for loop is the number of times the loop runs.

The loop variable, counter, increases by 1 each time the loop runs.

  • Click Run to start the demo and use the directions on the stage to navigate through the activity.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE