Difference between revisions of "Loops"
From CompSciWiki
(→Scope) |
|||
Line 15: | Line 15: | ||
*[[for]] | *[[for]] | ||
*[[nested loops]] | *[[nested loops]] | ||
− | == | + | |
− | [[Scope]] | + | ==[[Test_condition|Test Condition]]== |
+ | |||
+ | ==[[Scope]]== | ||
==Infinite Loops== | ==Infinite Loops== |
Revision as of 16:00, 5 March 2007
Contents
TO DO LIST (in any order)
- Discuss WHAT a loop is. (Definition)
- Types: while, for, do, etc...
- Bottom tested, top tested
- Terms:
- Initializing
- Condition (basic definition because we have a section below) -done
- etc...
An Introduction
A loop is a control structure that repeatedly executes a sequence of steps for as long as a test condition evaluates to true.
Types of Loops
Test Condition
Scope
Infinite Loops
Additional Information
- more on loops
- multiple statements in the Initialization and Update
- brief explanation of do-while loops (and why bottom testing loops are not ideal)
- Running Totals and Sentinel Values
- Review Questions and Exercises