Search Header Logo
For Loop

For Loop

Assessment

Presentation

•

Computers

•

12th Grade

•

Practice Problem

•

Hard

Created by

Anabee Barrio

Used 1+ times

FREE Resource

5 Slides • 0 Questions

1

media
media
media

For Loop

2

media

• It can be used to traverse set of code for the specified number of time

• It should be used if the number of iterations is known

otherwise use while loop. This means for loop is used when
you already know how many times you want to execute a
block of code.

• It allows users to put all the loop related statements in one place

3

media
media

4

media

Parameters

• Initialization : Initialize the loop counter value. The initial

value of the for loop is done only once.

• Condition : Evaluate each iteration value. The loop continuously

executes until the condition is false. If TRUE, the loop execution
continues, otherwise the execution of the loop ends.

• Increment/Decrement - It increments or decrements the value of the variable.

5

media

Activites

Display all numbers from 1 - 10 using for Loop and display the sum of all.

Display 4*4 Asterisk using for loop

Display a 90 Degree triangle (*) using for Loop

Fibonnaci series of 10 and sum of all numbers

pattern-tertiary
media
media
media

For Loop

Show answer

Auto Play

Slide 1 / 5

SLIDE