Main About Download Schemes Documentation Resources

For Shape

Default Appearance

What it Does

For Loops increment a variable through a range of values. This is a common, useful, replacement for a While Statement.

Example

The example, to the right, prints the numbers from 1 to 100. The loop executes 100 times. The value of 'n' starts at 1 and increases by 1 each time the loop executes. The loop ends when 'n' reaches 100.