Difference between revisions of "Loops"
From CompSciWiki
Line 1: | Line 1: | ||
==[[Loops]]== | ==[[Loops]]== | ||
− | + | ===An Introduction=== | |
+ | ===Types of Loops=== | ||
*[[While Loops|while]] | *[[While Loops|while]] | ||
*[[for]] | *[[for]] | ||
− | * | + | *nested loops |
+ | ===Scope=== | ||
+ | ===Infinite Loops=== | ||
+ | ===Test Conditions=== | ||
+ | ===Additional Information=== | ||
*[[more on loops|more on loops]] | *[[more on loops|more on loops]] | ||
**multiple statements in the Initialization and Update | **multiple statements in the Initialization and Update | ||
**brief explanation of do-while loops (and why bottom testing loops are not ideal) | **brief explanation of do-while loops (and why bottom testing loops are not ideal) | ||
**Running Totals and Sentinel Values | **Running Totals and Sentinel Values | ||
− | |||
**Review Questions and Exercises | **Review Questions and Exercises | ||
− | |||
− | |||
− | |||
− |
Revision as of 16:29, 20 February 2007
Contents
Loops
An Introduction
Types of Loops
Scope
Infinite Loops
Test Conditions
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