for loop

From Wiktionary, the free dictionary
Jump to navigation Jump to search

English

[edit]

Etymology

[edit]

From the keyword FOR, used in many programming languages for this purpose.

Noun

[edit]
Examples (BASIC)

FOR X=1 TO 10: PRINT 1/X: NEXT X

for loop (plural for loops)

  1. (programming) A section of code in which an instruction or group of instructions is executed a specific number of times depending on the value of a loop counter.

Translations

[edit]

See also

[edit]

Further reading

[edit]