Fandom

Wikianswers

Welcome! Enter your question below. Please use words like "Who, What, Where, When, Why, How, etc..." in your question. Nothing to ask? Click here for a random, un-answered question.

What is a For loop?

1,037,779questions on
Wikianswers
Add New Page
Talk0 Share

A For loop is a loop where a control variable is assigned an initial value and must meet a condition or final value to end the loop.

Example:

var i // This is the control variable
for i = 5; i greater than 0; i = i - 1;
    print i + line break
next

The output of this pseudocode is:

5
4
3
2
1

see also: For Loop Programming wiki

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki