Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/6

Click to flip

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