| Home | Links |

Loops

  • loop structures allow for the repeated execution of blocks of statements
  • three types of loop constructs: for, while, and do while loops
  • All loop structures have four elements or actions that occur. All four elements must be addressed for the loop structures to work.

1.       initialization

2.       testing of a condition or expression

3.       execution of statements

4.       move to stopping condition

 

Read the lessons on for and do while loops. When you are ready, test your knowledge by taking the quiz. Click on the link below.

Take the Quiz