Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

2

Computer
9

Activity Card 3A-2

Lesson: FOR-NEXT Loop

Objectives: 1. To define for-next loop;


2. To identify the parts of a for-next loop; and,
3. To create a for-next loop using a flowchart .

Main activity
True 1. The concept of cycles is needs when discussing with loop.
false 2. The variable is the counter for the loop to repeat the steps.
False 3. The STEP is the body loop.
True 4. For-Next loop is one of the finite loops.

Alternative Activity 1

Using the numbers in statement below identify the parts and function of
the FOR-NEXT loop.

1 2 3

For x=1 to 10 Step 2


a=a+x 4
Next

Parts Function
1. start Required. Numeric expression. The initial value
of counter.
2. end Required. Numeric expression. The final value
of counter.
3. step Optional. Numeric expression. The amount by
which counter is incremented each time through the
loop.
4. statements Optional. One or more statements
between For and Next that run the specified number of
times.

You might also like