|
|
|
|
|
Conditional LoopConditional loops (a.k.a. "Repetitive Control structures") are ways for computer programs to repeat one or more various steps depending on conditions set either by the programmer initially or real-time by the actual program. A conditional loop has the potential to become an infinite loop when nothing in the loop's body can affect the outcome of the loop's conditional statement. However, infinite loops can sometimes be used purposely, often with an exit from the loop built into the loop's body. There are several different condition loop implementation for every computer language, but many share the same basic structure and/or concept. The While loop and the For loop are the two most common types of conditional loops in most programming languages.
|
 |
|
| Copyright 2005-2009 OnPedia.com. All Rights Reserved |
|
|