1/12
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Loops
used to execute a set of statements many times.
while loop
First checks the condition, then executes the body ; utilized when we don't know how many iterations the loop will take.

for loop
Firstly initializes, then, condition check, execute body, update. ; a repetition control structure that allows us to write a loop that is executed a specific number of times. The loop enables us to perform n number of steps together in one line.

do-while loop
Firstly, execute the body then condition check ; is exit controlled

while loop, for loop, do while loop
3 types of loops
flow diagram of while loop

flow diagram of for loop

flow diagram od do while loop

Hello World Hello World Hello World Hello World Hello World ( each in each line)
guess output :

no output
guess output :

152 ; 6; 257 ; 7; 358 ; 8; 459; 9
guess output :

Hello World Hello World Hello World Hello World Hello World
guess output

Hello World
guess output
