Professional Documents
Culture Documents
GLENDA D. BALMELERO
SHS Teacher III, Exequiel R. Lina High School
Facilitator
Objectives
Terminal Objectives:
• At the end of the session, participants should be able to apply looping
structure in a program
Enabling Objectives:
• Explore the various types of looping structure in a program
• Create a program that will continue to run based on the given
condition/s
• Appreciate the value of using loop in automating repetitive tasks
Execute
Statement Block
[ statements ]
[ Exit While ]
[ statements ]
End While
ctr = 1 2 3 4 5 6
Initialization
Condition
Body of loop Counter is 1
Counter is 2
Change of state
Counter is 3
Counter is 4
Counter is 5
Execute
Conditional code
increment
With object
[ statements ]
End With
While condition1
While condition2
...
End While
End While
GoTo label
2. Write a program that will ask the user to enter a number n and display
the numbers from 1 to n.
2. Write a program that will ask the user to enter a number n and display
the numbers from 1 to n.
GLENDA D. BALMELERO
SHS Teacher III
Exequiel R. Lina High School
0930.554.1193
glenda.balmelero@deped.gov.ph