Difference between revisions of "Loops"

From CompSciWiki
Jump to: navigation, search
Line 1: Line 1:
 
==[[Loops]]==
 
==[[Loops]]==
*[[#An Introduction|An Introduction]]
+
===An Introduction===
 +
===Types of Loops===
 
*[[While Loops|while]]
 
*[[While Loops|while]]
 
*[[for]]
 
*[[for]]
*scope
+
*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
**nested loops
 
 
**Review Questions and Exercises
 
**Review Questions and Exercises
 
===An Introduction===
 
===Infinite Loops===
 
===Test Conditions===
 

Revision as of 16:29, 20 February 2007

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