Category:Iteration: Difference between revisions

From Rosetta Code
Content added Content deleted
m (Moved to Basic learning cat)
(differentiate between iterative and conditional loops)
Line 1: Line 1:
[[Category:Basic language learning]]
[[Category:Basic language learning]]Tasks in this category show how to use basic loops to accomplish repetitive tasks. A loop is a construct in which the program executes the same code multiple times, usually based on a boolean condition.
Loops are [[control structure]]s that allow sections of code to be executed repeatedly according to the controlling conditions of the loop. There are two types of loops: iterative loops and [[conditional loop]]s.

This category is about iterative loops. Iterative loop repeatedly execute a set of instructions as the iterator steps through a series of values. Types of iterative loops include [[forloop]]s and [[foreach]] loops. Tasks in this category show how iterative loops can be used to accomplish repetitive tasks.

Revision as of 19:00, 28 October 2010

Loops are control structures that allow sections of code to be executed repeatedly according to the controlling conditions of the loop. There are two types of loops: iterative loops and conditional loops.

This category is about iterative loops. Iterative loop repeatedly execute a set of instructions as the iterator steps through a series of values. Types of iterative loops include forloops and foreach loops. Tasks in this category show how iterative loops can be used to accomplish repetitive tasks.