Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
6 Cards in this Set
- Front
- Back
Template for Counter Controlled Loop
|
1.Set counter variable to 0
2.while counter variable<final value do begin Increase counter variable by 1 end |
|
Template for a Sentinal Controlled Loop
|
Read the first value of input variable
while input variable is not equal to the sentinal do begin Read the next value of input variable end |
|
Template for Flag Controlled lOop
|
Initialize flag to false
while not flag do begin Reset flag to true if the event being monitored occurs end |
|
while and repeat statements
|
use to write event controlled or conditional loops
|
|
while statement
|
the loop body is repeated as long as its loop-repitetion condition is true
|
|
repeat statement
|
the loop body is repeated until its loop-termination condition becomes true
|