Control Structures - Repetition: AAPP00-8-3-2
Control Structures - Repetition: AAPP00-8-3-2
Net
AAPP00-8-3-2
Nested Loops
ctr = 1
ctr = ctr + 1
True
Ctr <=10 Do something
False
i.e. 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10
• Show your answer using the
Do While .. Loop
• Use a MessageBox to display the Sum
Do
execute statement(s)
Loop While condition is true
Do something
ctr = ctr + 1
False True
Ctr <=10
n=1
Do
list1.additem n
n=n+1
Loop while n <= 10
Next variable
Ctr = 1
Do something
True
False
Sub Procedures