Knowledge (XXG)

For loop

Source 📝

31: 314: 1724:
Just as the index variable might be modified within a for-loop, so also may its bounds and direction. But to uncertain effect. A compiler may prevent such attempts, they may have no effect, or they might even work properly - though many would declare that to do so would be wrong. Consider a statement
3491:
initialises an internal variable, executes the body as long as the internal variable is not more than limit (or not less, if increment is negative) and, at the end of each iteration, increments the internal variable. Before each iteration, the value of the internal variable is pushed onto the stack.
2619:
The end-loop marker specifies the name of the index variable, which must correspond to the name of the index variable in the start of the for-loop. Some languages (PL/I, Fortran 95 and later) allow a statement label on the start of a for-loop that can be matched by the compiler against the same text
1525:
within the scope of the loop body, with any attempt to modify its value being regarded as a semantic error. Such modifications are sometimes a consequence of a programmer error, which can be very difficult to identify once made. However, only overt changes are likely to be detected by the compiler.
2628:
statements to name this text; in a nest of loops this makes clear which loop is intended. However, in these languages the labels must be unique, so successive loops involving the same index variable cannot use the same text nor can a label be the same as the name of a variable, such as the index
482:
In the initialization part, any variables needed are declared (and usually assigned values). If multiple variables are declared, they should all be of the same type. The condition part checks a certain condition and exits the loop if false, even if the loop is never executed. If the condition is
926:
the next inner loop, etc. The reverse order is also used by some programmers. This style is generally agreed to have originated from the early programming of Fortran, where these variable names beginning with these letters were implicitly declared as having an integer type, and so were obvious
1509:
to generate code that leaves any value in the loop variable, or perhaps even leaves it unchanged because the loop value was held in a register and never stored to memory. Actual behaviour may even vary according to the compiler's optimization settings, as with the Honywell Fortran66 compiler.
2393:
was formalized in late 1959 and has had many elaborations. It uses the PERFORM verb which has many options. Originally all loops had to be out-of-line with the iterated code occupying a separate paragraph. Ignoring the need for declaring and initialising variables, the COBOL equivalent of a
1306:
statements found in C and its derivatives. The break statement causes the inner-most loop to be terminated immediately when executed. The continue statement will move at once to the next iteration without further progress through the loop body for the current iteration. A for statement also
1844:
Given an action that must be repeated, for instance, five times, different languages' for-loops will be written differently. The syntax for a three-expression for-loop is nearly identical in all languages that have it, after accounting for different styles of block termination and so on.
451:
even in the numerical case). An optional step-value (an increment or decrement ≠ 1) may also be included, although the exact syntaxes used for this differs a bit more between the languages. Some languages require a separate declaration of the control variable, some do not.
679:
is either a data collection that supports implicit iteration (like a list of employee's names), or may in fact be an iterator itself. Some languages have this in addition to another for-loop syntax; notably, PHP has this type of loop under the name
1496:
J. The compiler will also be checking that each END DO has the appropriate label for its position: this is not just a documentation aid. The programmer must still code the problem correctly, but some possible blunders will be blocked.
632:
This type of for-loop is a generalisation of the numeric range type of for-loop, as it allows for the enumeration of sets of items other than number sequences. It is usually characterized by the use of an implicit or explicit
1767:
PL/I and ALGOL 68, allows loops in which the loop variable is iterated over a list of ranges of values instead of a single range. The following PL/I example will execute the loop with six values of i: 1, 7, 12, 13, 14, 15:
894:
Loop counters change with each iteration of a loop, providing a unique value for each individual iteration. The loop counter is used to decide when the loop should terminate and for the program flow to continue to the next
1754:
once only at the start, then if those items were simple variables and their values were somehow adjusted during the iterations, this would have no effect on the iteration count even if the element selected for division by
1307:
terminates when a break, goto, or return statement within the statement body is executed. Other languages may have similar statements or otherwise provide means to alter the for-loop progress; for example in Fortran 95:
1914:
The following two examples behave equivalently to the three argument for-loop in other languages, initializing the counter variable to 1, incrementing by 1 each iteration of the loop and stopping at five (inclusive).
483:
true, then the lines of code inside the loop are executed. The advancement to the next iteration part is performed exactly once every time the loop ends. The loop is then repeated if the condition evaluates to true.
890:
construct). It is so named because most uses of this construct result in the variable taking on a range of integer values in some orderly sequences (example., starting at 0 and end at 10 in increments of 1)
206:. This allows the body to know which iteration is being executed. For-loops are typically used when the number of iterations is known before entering the loop. For-loops can be thought of as shorthands for 2760:
INT sum sq := 0; FOR i WHILE print(("So far:", i, new line)); # Interposed for tracing purposes. # sum sq ≠ 70↑2 # This is the test for the WHILE # DO sum sq +:= i↑2 OD
1261:
since the fundamental steps of iteration are completely in the control of the programmer. In fact, when infinite loops are intended, this type of for-loop can be used (with empty expressions), such as:
1395:
Some languages offer further facilities such as naming the various loop statements so that with multiple nested loops there is no doubt as to which loop is involved. Fortran 95, for example:
1684:
Still another possibility is that the code generated may employ an auxiliary variable as the loop variable, possibly held in a machine register, whose value may or may not be copied to
1505:
Different languages specify different rules for what value the loop variable will hold on termination of its loop, and indeed some hold that it "becomes undefined". This permits a
198:
For-loops have two parts: a header and a body. The header defines the iteration and the body is the code that is executed once per iteration. The header often declares an explicit
1829:
factorial := 1 counter := 1 while counter < 5 counter := counter + 1 factorial := factorial * counter print counter + "! equals " + factorial
3257:
Maple has two forms of for-loop, one for iterating of a range of values, and the other for iterating over the contents of a container. The value range form is as follows:
1700:
or to the auxiliary variable (held safe from improper modification) and confusing results are guaranteed. For instance, within the loop a reference to element
329:, there are many differences in how these statements work and the level of expressiveness they support. Generally, for-loops fall into one of four categories: 280:. Rutishauser was involved in defining ALGOL 58 and ALGOL 60. The loop body is executed "for" the given values of the loop variable. This is more explicit in 2539:
If the PERFORM verb has the optional clause TEST AFTER, the resulting loop is slightly different: the loop body is executed at least once, before any test.
1823:
factorial := 1 for counter from 2 to 5 factorial := factorial * counter counter := counter - 1 print counter + "! equals " + factorial
821:
But whether that would be rendered in the style of the for-loop or the for all-loop or something else may not be clearly described in the compiler manual.
1298:
Some languages may also provide other supporting statements, which when present can alter how the for-loop iteration proceeds. Common among these are the
4587:
In the original Oberon language the for-loop was omitted in favor of the more general Oberon loop construct. The for-loop was reintroduced in Oberon-2.
5808:(* for_statement := "for" ident '=' expr ( "to" ∣ "downto" ) expr "do" expr "done" *) 4853:
may also be used to exit a loop at any time. Unlike other languages, AppleScript currently has no command to continue to the next iteration of a loop.
6422: 159: 4198:) is a syntax error. If the above loops contained only comments, execution would result in the message "syntax error near unexpected token 'done'". 771:
Some languages (such as PL/I, Fortran 95) also offer array assignment statements, that enable many for-loops to be omitted. Thus pseudocode such as
1530:
make it very difficult to check, because the routine's behavior is in general unknowable to the compiler. Some examples in the style of Fortran:
3940: 3404:
clause specifies the container, which may be a list, set, sum, product, unevaluated function, array, or an object implementing an iterator.
460: 6417: 6339: 2727:
Further, the single iteration range could be replaced by a list of such ranges. There are several unusual aspects of the construct
1492:
Thus, when "trouble" is detected in the inner loop, the CYCLE X1 (not X2) means that the skip will be to the next iteration for I,
6369: 6223: 4862: 4217: 896: 637:, in which the loop variable takes on each of the values in a sequence or other data collection. A representative example in 374: 326: 195:. Specifically, a for-loop functions by running a section of code repeatedly until a certain condition has been satisfied. 4596: 4543: 2811: 638: 471:, and the advancement to the next iteration. All these three parts are optional. This type of "semicolon loops" came from 440: 358: 350: 152: 1692:
would not affect the control of the loop, but now a disjunction is possible: within the loop, references to the value of
6186: 6132: 903: 188: 1669:
A common approach is to calculate the iteration count at the start of a loop (with careful attention to overflow as in
775:
would set all elements of array A to zero, no matter its size or dimensionality. The example loop could be rendered as
6090: 5687: 5356: 862:
defined after the termination of the loop, then the above statement will find the first non-positive element in array
487: 203: 6191: 5989: 5984: 5047: 3552: 3096: 3084: 362: 1704:
of an array would likely employ the auxiliary variable (especially if it were held in a machine register), but if
1673:
in sixteen-bit integer arithmetic) and with each iteration decrement this count while also adjusting the value of
6033: 5786: 2898: 2692: 1514: 472: 456: 145: 1282:
loops to avoid a type conversion warning in some C/C++ compilers. Some programmers prefer the more succinct
697: 2467: 322: 4773:
It can also iterate through a list of items, similar to what can be done with arrays in other languages:
6412: 5945: 3045:
loops. All the three sections in the for loop are optional, with an empty condition equivalent to true.
928: 887: 879: 712: 3952: 927:
choices for loop counters that were only temporarily required. The practice dates back further to
6273: 3080: 2798: 476: 258:(or keyword) in many programming languages to introduce a for-loop. The term in English dates to 284:
versions of the for statement where a list of possible values and increments can be specified.
6335: 6219: 5210: 4081: 3434: 833:
and followed by PL/I, this allows the iteration of a loop to be compounded with a test, as in
277: 2699:
may leave a specific labeled loop in a group of nested loops. Some PL/I dialects include the
6373: 4551: 3956: 3252: 1522: 173: 6239: 1299: 468: 6261: 6309: 6296: 719:
assignments are made, as distinct from the explicit iteration form. For example, in the
3726: 1712:-statement to reveal its value), it would likely be a reference to the proper variable 940: 932: 870:), or, with suitable variations, the first non-blank character in a string, and so on. 971:
An example of C code involving nested for loops, where the loop counter variables are
6406: 6393: 6211: 6171: 3083:
but defined in the class Number as a method with two parameters, the end value and a
1258: 1252: 301: 255: 127: 107: 1649:!Implicit for-loop to print odd elements of arrays A and B, reusing "I"... 6257: 5879: 5423: 1303: 963:, as this allows easier searching and search-replacing than using a single letter. 723:
statement in the following pseudocode fragment, when calculating the new value for
627: 464: 378: 185: 132: 122: 97: 4014:
Mathematica also has a For construct that mimics the for-loop of C-like languages
735:
will obtain the new value that had been placed there in the previous step. In the
6285:
I saw Johnson's semicolon version of the for loop and I put that in , I stole it.
4728: 1526:
Situations where the address of the loop variable is passed as an argument to a
30: 6181: 5435: 3482: 1527: 705: 444: 268: 213:
Various keywords are used to indicate the usage of a for loop: descendants of
207: 112: 858:
the for-loop's execution stops short. Granted that the loop variable's value
3076: 3054: 1583:!Function "ADJUST" might alter "I", to uncertain effect. 951:, etc. A variant convention is the use of duplicated letters for the index, 936: 273: 192: 6355: 495:// Prints the numbers from 0 to 99 (and not 100), each followed by a space. 739:
version, however, each calculation refers only to the original, unaltered
696:
Some languages offer a for-loop that acts as if processing all iterations
5414://can use the statement 'continue;' to skip the current iteration 4547: 3871:# variable implicitly called $ _; 1..5 creates a list of these 5 elements 2906: 2735:
portion was compulsory, in which case the loop will iterate indefinitely.
2712: 2343: 1506: 886:
is a control variable that controls the iterations of a loop (a computer
830: 634: 263: 259: 247: 17: 6268: 6176: 4207: 3961:
The construct corresponding to most other languages' for-loop is named
2780:
to achieve a small optimization. The same compilers also incorporated:
1854: 222: 2703:
statement to terminate the current loop iteration and begin the next.
3678: 1738:
If the approach to compiling such a loop was to be the evaluation of
366: 354: 342: 5506:
Alternatively, it is possible to iterate over all keys of an array.
1094:
For loops in C can also be used to print the reverse of a word. As:
684:, as well as a three-expression for-loop (see below) under the name 313: 2902: 1867:
loop, using the keyword do instead of for, The syntax of Fortran's
1681:
within the loop will not change the number of iterations executed.
1518: 1333:!Executed for all values of "I", up to a disaster if any. 5798: 5198: 5194: 3146:
may leave a specifically labeled loop in a group of nested loops:
3142:
statement may be used to exit the loop. Loops can be labeled, and
2554: 2548: 2390: 2385: 1562:!Overt adjustment of the loop variable. Compiler complaint likely. 370: 346: 338: 281: 230: 214: 29: 2620:
on the corresponding end-loop statement. Fortran also allows the
2199:. In the modern free-form Fortran style, blanks are significant. 3738: 3520:
There is also a simple repeat-loop. The repeat-loop, written as
2638: 1677:: double counting results. However, adjustments to the value of 288: 5555: 4282:
But, to save the space of the list, a more authentic monadic
3038: 317:
For loop illustration, from i=0 to i=2, resulting in data1=200
2191:
Spaces are irrelevant in fixed-form Fortran statements, thus
1750:
and the calculation of an iteration count via something like
381:
with start- and end-values, which looks something like this:
5789:
has several possible syntaxes, including the above samples.
3898:# almost same (only 1 statement) with natural language order 3362:
Iterating over a container is done using this form of loop:
1592:!Memory might fade that "I" is the loop variable. 5996:-type loop and various operations for creating iterators. 5440:
JavaScript supports C-style "three-expression" loops. The
2043:
The step part may be omitted if the step is one. Example:
1354:!Skip this value of "I", continue with the next. 486:
Here is an example of the C-style traditional for-loop in
5193:
example is only available in the dialect of CFML used by
4601:
Python does not contain the classical for loop, rather a
2952:
is often a block statement; an example of this would be:
6334:. Addison-Wesley Publishing Company. 1999. p. 596. 4609:
function which returns an iterable sequence of integers.
4605:
loop is used to iterate over the output of the built-in
3323:
part, if present, must come first. The remaining parts (
6263:
VCF East 2019 – Brian Kernighan interviews Ken Thompson
5411://can use the statement 'break;' to exit early; 1994:
In Fortran 77 (or later), this may also be written as:
1286:
form over the semantically equivalent but more verbose
2670:/* "by 1" is the default if not specified */ 6297:
http://www.knosof.co.uk/vulnerabilities/loopcntrl.pdf
3037:
The ISO/IEC 9899:1999 publication (commonly known as
2691:
statement may be used to exit the loop. Loops can be
266:. It is the direct translation of the earlier German 3439:
In Maxima CAS, one can use also non integer values:
1820:
A for-loop is generally equivalent to a while-loop:
1696:
might be to the (possibly altered) current value of
5445: 5441: 5190: 4850: 4195: 4191: 3722: 3715: 3521: 3488: 3042: 2852: 2848: 2792: 2784: 2777: 2773: 2769: 2753: 2746: 2739: 2732: 2625: 2621: 2349: 1756: 1751: 1670: 1287: 1283: 1279: 1257:This C-style for-loop is commonly the source of an 1235: 1231: 854:will the loop body be executed. If the result were 772: 740: 736: 732: 728: 724: 720: 701: 685: 681: 676: 448: 235: 6394:https://nim-lang.org/docs/system.html#...i%2CT%2CT 4641:# gives i values from 1 to 5 inclusive (but not 6) 4190:An empty loop (i.e., one with no commands between 906:is for the loop counter to use the variable names 842:That is, a value is assigned to the loop variable 2889:The numeric-range for-loop varies somewhat more. 2569:REM THIS FOR LOOP PRINTS ODD NUMBERS FROM 1 TO 15 1716:instead. It is best to avoid such possibilities. 90:The loop will cause five asterisks to be printed. 2465:In the 1980s, the addition of in-line loops and 1832:as demonstrated by the output of the variables. 1708:is a parameter to some routine (for instance, a 618:when contrasted with foreach loops (see below). 2373:For example to print 0 to 10 incremented by 1: 4969:For-loops can also loop through a table using 836:for i := 1 : N while A(i) > 0 do 325:languages. Even ignoring minor differences in 229:". There are other possibilities, for example 3729:, its use as a loop variable is discouraged. 2471:statements such as END-PERFORM resulted in a 295:is used for the same thing and it is named a 153: 34:Flow diagram of the following for loop code: 27:Control flow statement for repeated execution 8: 4538:1991: Oberon-2, Oberon-07, Component Pascal 2847:Decrementing (counting backwards) is using 1688:on each iteration. Again, modifications of 5033:-- contacts() must be an iterator function 4995:to iterate randomly through dictionaries. 4982:to iterate numerically through arrays and 4248:or get each iteration result as a list in 2376:FOR x = 0 (1) 10 BEGIN PRINT (FL) = x END 1671:for i := 0 : 65535 do ... ; 1664:!How many times will the loop be executed? 321:A for-loop statement is available in most 210:which increment and test a loop variable. 160: 146: 93: 4998:Generic for-loop making use of closures: 2724:FOR i FROM 1 BY 2 TO 3 WHILE i≠4 DO ~ OD 4173:# must have at least one command in loop 4116:# must have at least one command in loop 2352:statement, using the form as Superplan: 1731:i := first : last : step 312: 6299:Analysis of loop control variables in C 6216:Systematic Programming: An Introduction 6203: 5448:statements are supported inside loops. 5042:1995: ColdFusion Markup Language (CFML) 4659:# if we want 6 we must do the following 1840:syntax in various programming languages 1360:!Executed only where goodness prevails. 1278:This style is used instead of infinite 439:Depending on the language, an explicit 96: 3041:) also allows initial declarations in 2957://Using for-loops to add numbers 1 - 5 2772:syntactic element to be replaced with 2475:-loop with a more familiar structure. 1390:!Should align with the "DO". 3471:/* "Do something with x" */ 2768:to the standard ALGOL 68 allowed the 2752:allowed a programmer to break from a 614:These loops are also sometimes named 447:(and some languages require the word 7: 5408://perform functions within the loop; 3524:, repeats the body exactly X times. 2907:C syntax § Iteration statements 2721:universal loop, the full syntax is: 455:Another form was popularized by the 3787:# implicitly or predefined variable 1242:Additional semantics and constructs 866:(and if no such, its value will be 768:The difference may be significant. 6310:"Compiler Warning (level 4) C4127" 3941:There's more than one way to do it 708:which has the interpretation that 475:and it was originally invented by 199: 25: 5304:Using a "list" of string values: 2742:, will iterate exactly 100 times. 2717:ALGOL 68 has what was considered 1501:Loop variable scope and semantics 715:expressions are evaluated before 443:sign may be used in place of the 6423:Programming language comparisons 5560:This prints out a triangle of * 4719:would run the loop from 0 to 5. 3407:A for-loop may be terminated by 3075:Contrary to other languages, in 6276:from the original on 2021-12-12 5535:// also works for assoc. arrays 5422:For the extended for-loop, see 5143:Using a list of string values: 4286:construction can be defined as 3943:" is a Perl programming motto. 337:The for-loop of languages like 5739:# counter iterates from 0 to 4 4863:Crystal (programming language) 3928:# variable private to the loop 3841:# variable private to the loop 2557:, a loop is sometimes named a 1658:!What value will be presented? 922:would be the most outer loop, 1: 6356:"PostScript Tutorial - Loops" 6332:PostScript Language Reference 4597:Python (programming language) 4544:Oberon (programming language) 3087:, using self as start value. 2812:Pascal (programming language) 1735:A(i) := A(i) / A(last); 1384:!While good and, no disaster. 918:(and so on if needed), where 727:, except for the first (with 6187:Primitive recursive function 6133:Julia (programming language) 4695:# gives i values from 1 to 6 3718:would be 5 in this example. 1859:Fortran's equivalent of the 1816:Equivalence with while-loops 904:identifier naming convention 6091:Rust (programming language) 5688:Ruby (programming language) 5357:Java (programming language) 5342:<!--- statements ---> 5296:<!--- statements ---> 5253:<!--- statements ---> 4220:expression into a list, as 3359:) can appear in any order. 2206:may be avoided by using an 1294:Early exit and continuation 459:. It requires 3 parts: the 299:; this is different from a 6439: 6192:General recursive function 6130: 6088: 6031: 5985:Nim (programming language) 5982: 5943: 5877: 5796: 5685: 5553: 5433: 5354: 5208: 5048:ColdFusion Markup Language 5045: 4860: 4726: 4594: 4541: 4532:-- whatever with the index 4205: 4079: 3950: 3736: 3676: 3553:Ada (programming language) 3550: 3480: 3432: 3250: 3097:Ada (programming language) 3094: 3052: 2896: 2809: 2789:for late loop termination. 2710: 2636: 2546: 2383: 2341: 1852: 1250: 625: 6370:"OCaml expression syntax" 6034:Go (programming language) 3487:The for-loop, written as 2797:for working on arrays in 761:i := 2 : N - 1 749:i := 2 : N - 1 6418:Iteration in programming 6136: 6094: 6037: 5998: 5949: 5883: 5805: 5691: 5562: 5508: 5450: 5424:Foreach loop § Java 5360: 5306: 5263: 5217: 5145: 5114: 5059: 5000: 4984: 4971: 4955: 4906: 4866: 4775: 4732: 4611: 4579:(* statement sequence *) 4555: 4472: 4288: 4250: 4222: 4212:The built-in imperative 4132: 4085: 4016: 3967: 3742: 3682: 3556: 3526: 3494: 3441: 3148: 3100: 3058: 2954: 2910: 2899:C (programming language) 2857: 2815: 2642: 2563: 2477: 2400: 2348:ALGOL 58 introduced the 2212: 2045: 1996: 1917: 1873: 1770: 1532: 1397: 1309: 1264: 1096: 981: 777: 643: 622:Iterator-based for-loops 492: 383: 377:, and so on, requires a 221:", while descendants of 35: 5803:See expression syntax. 4182:# just print value of i 4125:# just print value of i 2629:variable for the loop. 1521:) the loop variable is 1513:In some languages (not 262:and was popularized in 4253:statements_result_list 3547:1983: Ada 83 and above 2468:structured programming 1230:Here, if the input is 473:B programming language 323:imperative programming 318: 267: 91: 6131:Further information: 6089:Further information: 6032:Further information: 5983:Further information: 5946:Microsoft Small Basic 5944:Further information: 5878:Further information: 5797:Further information: 5686:Further information: 5554:Further information: 5434:Further information: 5355:Further information: 5327:"1;2,3;4,5" 5209:Further information: 5166:"1;2,3;4,5" 5046:Further information: 4861:Further information: 4727:Further information: 4595:Further information: 4542:Further information: 4206:Further information: 4080:Further information: 3951:Further information: 3737:Further information: 3677:Further information: 3551:Further information: 3481:Further information: 3433:Further information: 3251:Further information: 3095:Further information: 3053:Further information: 2897:Further information: 2810:Further information: 2711:Further information: 2637:Further information: 2547:Further information: 2384:Further information: 2342:Further information: 1853:Further information: 1251:Further information: 1247:Use as infinite loops 1234:, the output will be 929:mathematical notation 626:Further information: 333:Traditional for-loops 316: 33: 5874:1998: ActionScript 3 3079:a for-loop is not a 1763:List of value ranges 1720:Adjustment of bounds 888:programming language 880:computer programming 692:Vectorised for-loops 677:some_iterable_object 655:some_iterable_object 246:comes from the word 6214:(1973). "Preface". 5215:Simple index loop: 5057:Simple index loop: 4796:"waffles" 3953:Wolfram Mathematica 2851:keyword instead of 2202:In Fortran 90, the 1752:(last - first)/step 765:A(i) := / 3; 753:A(i) := / 3; 731:) the reference to 6240:"For loops in C++" 5664:"<br /> 3314:are optional. The 3081:language construct 2756:loop early, as in: 2215:* DO loop example. 2048:* DO loop example. 1826:is equivalent to: 1378:!Abandon the loop. 825:Compound for-loops 319: 92: 6218:. pp. xiii. 5940:2008: Small Basic 5211:Tag (programming) 4802:"bacon" 4723:1993: AppleScript 4082:Bash (Unix shell) 3947:1988: Mathematica 3435:Maxima (software) 3302:All parts except 2750:syntactic element 667:do_something_else 616:numeric for-loops 278:Heinz Rutishauser 170: 169: 16:(Redirected from 6430: 6397: 6391: 6385: 6384: 6382: 6381: 6372:. Archived from 6366: 6360: 6359: 6352: 6346: 6345: 6328: 6322: 6321: 6319: 6317: 6306: 6300: 6294: 6288: 6287: 6282: 6281: 6254: 6248: 6247: 6236: 6230: 6229: 6208: 6161: 6158: 6155: 6152: 6149: 6146: 6143: 6140: 6122: 6119: 6116: 6113: 6110: 6107: 6104: 6101: 6098: 6080: 6077: 6074: 6071: 6068: 6065: 6062: 6059: 6056: 6053: 6050: 6047: 6044: 6041: 6023: 6020: 6017: 6014: 6011: 6008: 6005: 6002: 5995: 5974: 5971: 5970:' Statements 5968: 5965: 5962: 5959: 5956: 5953: 5935: 5932: 5929: 5926: 5923: 5920: 5917: 5914: 5911: 5908: 5905: 5902: 5899: 5896: 5893: 5890: 5887: 5869: 5866: 5863: 5862:(* statements *) 5860: 5857: 5854: 5851: 5848: 5845: 5842: 5839: 5836: 5833: 5832:(* statements *) 5830: 5827: 5824: 5821: 5818: 5815: 5812: 5809: 5782: 5779: 5776: 5773: 5770: 5767: 5764: 5761: 5758: 5755: 5752: 5749: 5746: 5743: 5740: 5737: 5734: 5731: 5728: 5725: 5722: 5719: 5716: 5713: 5710: 5707: 5704: 5701: 5698: 5695: 5677: 5674: 5671: 5668: 5665: 5662: 5659: 5656: 5653: 5650: 5647: 5644: 5641: 5638: 5635: 5632: 5629: 5626: 5623: 5620: 5617: 5614: 5611: 5608: 5605: 5602: 5599: 5596: 5593: 5590: 5587: 5584: 5581: 5578: 5575: 5572: 5569: 5566: 5545: 5542: 5539: 5536: 5533: 5530: 5527: 5524: 5521: 5518: 5515: 5512: 5502: 5499: 5496: 5493: 5490: 5487: 5484: 5481: 5478: 5475: 5472: 5469: 5466: 5463: 5460: 5457: 5454: 5447: 5443: 5430:1995: JavaScript 5418: 5415: 5412: 5409: 5406: 5403: 5400: 5397: 5394: 5391: 5388: 5385: 5382: 5379: 5376: 5373: 5370: 5367: 5364: 5346: 5343: 5340: 5337: 5334: 5331: 5328: 5325: 5322: 5319: 5316: 5313: 5310: 5300: 5297: 5294: 5291: 5288: 5285: 5282: 5279: 5276: 5273: 5270: 5267: 5261:Using an array: 5257: 5254: 5251: 5248: 5245: 5242: 5239: 5236: 5233: 5230: 5227: 5224: 5221: 5192: 5185: 5182: 5179: 5176: 5173: 5170: 5167: 5164: 5161: 5158: 5155: 5152: 5149: 5139: 5136: 5133: 5130: 5127: 5124: 5121: 5118: 5112:Using an array: 5108: 5105: 5102: 5099: 5096: 5093: 5090: 5087: 5084: 5081: 5078: 5075: 5072: 5069: 5066: 5063: 5037: 5034: 5031: 5028: 5025: 5022: 5019: 5016: 5013: 5010: 5007: 5004: 4991: 4988: 4978: 4975: 4965: 4962: 4959: 4949: 4946: 4943: 4940: 4937: 4934: 4931: 4928: 4925: 4922: 4919: 4916: 4913: 4910: 4900: 4897: 4894: 4891: 4888: 4885: 4882: 4879: 4876: 4873: 4870: 4852: 4845: 4842: 4839: 4836: 4833: 4830: 4827: 4824: 4821: 4818: 4815: 4812: 4809: 4806: 4803: 4800: 4797: 4794: 4791: 4788: 4785: 4782: 4779: 4769: 4766: 4763: 4760: 4757: 4754: 4751: 4748: 4745: 4742: 4739: 4736: 4718: 4711: 4708: 4705: 4702: 4699: 4696: 4693: 4690: 4687: 4684: 4681: 4678: 4675: 4672: 4669: 4666: 4663: 4660: 4657: 4654: 4651: 4648: 4645: 4642: 4639: 4636: 4633: 4630: 4627: 4624: 4621: 4618: 4615: 4608: 4604: 4583: 4580: 4577: 4574: 4571: 4568: 4565: 4562: 4559: 4552:Component Pascal 4533: 4530: 4527: 4524: 4521: 4518: 4515: 4512: 4509: 4506: 4503: 4500: 4497: 4494: 4491: 4488: 4485: 4482: 4479: 4476: 4466: 4463: 4460: 4457: 4454: 4451: 4448: 4445: 4442: 4439: 4436: 4433: 4430: 4427: 4424: 4421: 4418: 4415: 4412: 4409: 4406: 4403: 4400: 4397: 4394: 4391: 4388: 4385: 4382: 4379: 4376: 4373: 4370: 4367: 4364: 4361: 4358: 4355: 4352: 4349: 4346: 4343: 4340: 4337: 4334: 4331: 4328: 4325: 4322: 4319: 4316: 4313: 4310: 4307: 4304: 4301: 4298: 4295: 4292: 4278: 4275: 4272: 4269: 4266: 4263: 4260: 4257: 4254: 4244: 4241: 4238: 4235: 4232: 4229: 4226: 4197: 4193: 4186: 4183: 4180: 4177: 4174: 4171: 4168: 4164: 4161: 4158: 4154: 4151: 4148: 4145: 4142: 4139: 4136: 4129: 4126: 4123: 4120: 4117: 4114: 4111: 4108: 4105: 4102: 4099: 4096: 4092: 4089: 4071: 4068: 4065: 4062: 4059: 4056: 4053: 4050: 4047: 4044: 4041: 4038: 4035: 4032: 4029: 4026: 4023: 4020: 4010: 4007: 4004: 4001: 3998: 3995: 3992: 3989: 3986: 3983: 3980: 3977: 3974: 3971: 3965:in Mathematica. 3957:Wolfram Language 3935: 3932: 3929: 3926: 3923: 3920: 3917: 3914: 3911: 3908: 3905: 3902: 3899: 3896: 3893: 3890: 3887: 3884: 3881: 3878: 3875: 3872: 3869: 3866: 3863: 3860: 3857: 3854: 3851: 3848: 3845: 3842: 3839: 3836: 3833: 3830: 3827: 3824: 3821: 3818: 3815: 3812: 3809: 3806: 3803: 3800: 3797: 3794: 3791: 3788: 3785: 3782: 3779: 3776: 3773: 3770: 3767: 3764: 3761: 3758: 3755: 3752: 3749: 3746: 3725:is used for the 3724: 3717: 3714:After the loop, 3710: 3707: 3704: 3701: 3698: 3695: 3692: 3689: 3686: 3668: 3665: 3662: 3659: 3656: 3653: 3650: 3647: 3644: 3641: 3638: 3635: 3632: 3629: 3626: 3623: 3620: 3617: 3614: 3611: 3608: 3605: 3602: 3599: 3596: 3593: 3590: 3587: 3584: 3581: 3578: 3575: 3572: 3569: 3566: 3563: 3560: 3542: 3539: 3536: 3533: 3530: 3523: 3522:X { ... } repeat 3516: 3513: 3510: 3507: 3504: 3501: 3498: 3490: 3477:1982: PostScript 3472: 3469: 3466: 3463: 3460: 3457: 3454: 3451: 3448: 3445: 3429:1982: Maxima CAS 3424: 3418: 3412: 3403: 3358: 3349: 3340: 3331: 3322: 3313: 3307: 3253:Maple (software) 3242: 3239: 3236: 3233: 3230: 3227: 3224: 3221: 3218: 3215: 3212: 3209: 3206: 3203: 3200: 3197: 3194: 3191: 3188: 3185: 3182: 3179: 3176: 3173: 3170: 3167: 3164: 3161: 3158: 3155: 3152: 3134: 3131: 3128: 3125: 3122: 3119: 3116: 3113: 3110: 3107: 3104: 3071: 3068: 3065: 3062: 3044: 3033: 3030: 3027: 3024: 3021: 3018: 3015: 3012: 3009: 3006: 3003: 3000: 2997: 2994: 2991: 2988: 2985: 2982: 2979: 2976: 2973: 2970: 2967: 2964: 2961: 2958: 2951: 2944: 2941: 2938: 2935: 2932: 2929: 2926: 2923: 2920: 2917: 2914: 2885: 2882: 2879: 2876: 2873: 2870: 2867: 2864: 2861: 2854: 2850: 2843: 2840: 2837: 2834: 2831: 2828: 2825: 2822: 2819: 2794: 2786: 2779: 2775: 2771: 2755: 2748: 2741: 2738:thus the clause 2734: 2702: 2690: 2683: 2680: 2677: 2674: 2671: 2668: 2665: 2662: 2659: 2656: 2653: 2650: 2646: 2627: 2623: 2615: 2612: 2609: 2606: 2603: 2600: 2597: 2594: 2591: 2588: 2585: 2582: 2579: 2576: 2573: 2570: 2567: 2535: 2532: 2529: 2526: 2523: 2520: 2517: 2514: 2511: 2508: 2505: 2502: 2499: 2496: 2493: 2490: 2487: 2484: 2481: 2461: 2458: 2455: 2452: 2449: 2446: 2443: 2440: 2437: 2434: 2431: 2428: 2425: 2422: 2419: 2416: 2413: 2410: 2407: 2404: 2398:-loop would be. 2351: 2333: 2330: 2327: 2324: 2321: 2318: 2315: 2312: 2309: 2306: 2303: 2300: 2297: 2294: 2291: 2288: 2285: 2282: 2279: 2276: 2273: 2270: 2267: 2264: 2261: 2258: 2255: 2252: 2249: 2246: 2243: 2240: 2237: 2234: 2231: 2228: 2225: 2222: 2219: 2216: 2209: 2205: 2198: 2194: 2187: 2184: 2181: 2178: 2175: 2172: 2169: 2166: 2163: 2160: 2157: 2154: 2151: 2148: 2145: 2142: 2139: 2136: 2133: 2130: 2127: 2124: 2121: 2118: 2115: 2112: 2109: 2106: 2103: 2100: 2097: 2094: 2091: 2088: 2085: 2082: 2079: 2076: 2073: 2070: 2067: 2064: 2061: 2058: 2055: 2052: 2049: 2039: 2036: 2033: 2030: 2027: 2024: 2021: 2018: 2015: 2012: 2009: 2006: 2003: 2000: 1990: 1987: 1984: 1981: 1978: 1975: 1972: 1969: 1966: 1963: 1960: 1957: 1954: 1951: 1948: 1945: 1942: 1939: 1936: 1933: 1930: 1927: 1924: 1921: 1910: 1907: 1904: 1901: 1898: 1895: 1892: 1889: 1886: 1883: 1880: 1877: 1870: 1866: 1862: 1836:Timeline of the 1811: 1808: 1805: 1802: 1799: 1796: 1793: 1790: 1787: 1784: 1781: 1778: 1774: 1758: 1753: 1749: 1745: 1741: 1715: 1707: 1703: 1699: 1695: 1691: 1687: 1680: 1676: 1672: 1665: 1662: 1659: 1656: 1653: 1650: 1647: 1644: 1641: 1638: 1635: 1632: 1629: 1626: 1623: 1620: 1617: 1614: 1611: 1608: 1605: 1602: 1599: 1596: 1593: 1590: 1587: 1584: 1581: 1578: 1575: 1572: 1569: 1566: 1563: 1560: 1557: 1554: 1551: 1548: 1545: 1542: 1539: 1536: 1488: 1485: 1482: 1479: 1476: 1473: 1470: 1467: 1464: 1461: 1458: 1455: 1452: 1449: 1446: 1443: 1440: 1437: 1434: 1431: 1428: 1425: 1422: 1419: 1416: 1413: 1410: 1407: 1404: 1401: 1391: 1388: 1385: 1382: 1379: 1376: 1373: 1370: 1367: 1364: 1361: 1358: 1355: 1352: 1349: 1346: 1343: 1340: 1337: 1334: 1331: 1328: 1325: 1322: 1319: 1316: 1313: 1289: 1285: 1281: 1274: 1271: 1268: 1237: 1233: 1226: 1223: 1220: 1217: 1214: 1211: 1208: 1205: 1202: 1199: 1196: 1193: 1190: 1187: 1184: 1181: 1178: 1175: 1172: 1169: 1166: 1163: 1160: 1157: 1154: 1151: 1148: 1145: 1142: 1139: 1136: 1133: 1130: 1127: 1124: 1121: 1118: 1115: 1112: 1109: 1106: 1103: 1100: 1090: 1087: 1084: 1081: 1078: 1075: 1072: 1069: 1066: 1063: 1060: 1057: 1054: 1051: 1048: 1045: 1042: 1039: 1036: 1033: 1030: 1027: 1024: 1021: 1018: 1015: 1012: 1009: 1006: 1003: 1000: 997: 994: 991: 988: 985: 899:after the loop. 848:while expression 846:and only if the 829:Introduced with 817: 814: 811: 808: 805: 802: 799: 796: 793: 790: 787: 784: 781: 774: 742: 738: 734: 730: 726: 722: 703: 687: 683: 678: 671: 668: 665: 662: 659: 656: 653: 650: 647: 610: 607: 604: 601: 598: 595: 592: 589: 586: 583: 580: 577: 574: 571: 568: 565: 562: 559: 556: 553: 550: 547: 544: 541: 538: 535: 532: 529: 526: 523: 520: 517: 514: 511: 508: 505: 502: 499: 496: 450: 435: 432: 429: 426: 423: 420: 417: 414: 411: 408: 405: 402: 399: 396: 393: 390: 387: 379:control variable 294: 272:and was used in 238: 237: 228: 220: 174:computer science 162: 155: 148: 94: 87: 84: 81: 78: 75: 72: 69: 66: 63: 60: 57: 54: 51: 48: 45: 42: 39: 21: 6438: 6437: 6433: 6432: 6431: 6429: 6428: 6427: 6403: 6402: 6401: 6400: 6392: 6388: 6379: 6377: 6368: 6367: 6363: 6354: 6353: 6349: 6342: 6330: 6329: 6325: 6315: 6313: 6308: 6307: 6303: 6295: 6291: 6279: 6277: 6256: 6255: 6251: 6238: 6237: 6233: 6226: 6210: 6209: 6205: 6200: 6168: 6163: 6162: 6159: 6156: 6153: 6150: 6147: 6144: 6141: 6138: 6135: 6129: 6124: 6123: 6120: 6117: 6114: 6111: 6108: 6105: 6102: 6099: 6096: 6093: 6087: 6082: 6081: 6078: 6075: 6072: 6069: 6066: 6063: 6060: 6057: 6054: 6051: 6048: 6045: 6042: 6039: 6036: 6030: 6025: 6024: 6021: 6018: 6015: 6012: 6009: 6006: 6003: 6000: 5993: 5987: 5981: 5976: 5975: 5972: 5969: 5966: 5963: 5960: 5957: 5954: 5951: 5948: 5942: 5937: 5936: 5933: 5930: 5927: 5924: 5921: 5918: 5915: 5912: 5909: 5906: 5903: 5900: 5897: 5894: 5891: 5888: 5885: 5882: 5876: 5871: 5870: 5867: 5864: 5861: 5858: 5855: 5852: 5849: 5846: 5843: 5840: 5837: 5834: 5831: 5828: 5825: 5822: 5819: 5816: 5813: 5810: 5807: 5801: 5795: 5784: 5783: 5780: 5777: 5774: 5771: 5768: 5765: 5762: 5759: 5756: 5753: 5750: 5747: 5744: 5741: 5738: 5735: 5732: 5729: 5726: 5723: 5720: 5717: 5714: 5711: 5708: 5705: 5702: 5699: 5696: 5693: 5690: 5684: 5679: 5678: 5675: 5672: 5669: 5666: 5663: 5660: 5657: 5654: 5651: 5648: 5645: 5642: 5639: 5636: 5633: 5630: 5627: 5624: 5621: 5618: 5615: 5612: 5609: 5606: 5603: 5600: 5597: 5594: 5591: 5588: 5585: 5582: 5579: 5576: 5573: 5570: 5567: 5564: 5558: 5552: 5547: 5546: 5543: 5540: 5537: 5534: 5531: 5528: 5525: 5522: 5519: 5516: 5513: 5510: 5504: 5503: 5500: 5497: 5494: 5491: 5488: 5485: 5482: 5479: 5476: 5473: 5470: 5467: 5464: 5461: 5458: 5455: 5452: 5438: 5432: 5420: 5419: 5416: 5413: 5410: 5407: 5404: 5401: 5398: 5395: 5392: 5389: 5386: 5383: 5380: 5377: 5374: 5371: 5368: 5365: 5362: 5359: 5353: 5348: 5347: 5345:</cfloop> 5344: 5341: 5338: 5335: 5332: 5329: 5326: 5323: 5320: 5317: 5314: 5311: 5308: 5302: 5301: 5299:</cfloop> 5298: 5295: 5292: 5289: 5286: 5283: 5280: 5277: 5274: 5271: 5268: 5265: 5259: 5258: 5256:</cfloop> 5255: 5252: 5249: 5246: 5243: 5240: 5237: 5234: 5231: 5228: 5225: 5222: 5219: 5213: 5207: 5187: 5186: 5183: 5180: 5177: 5174: 5171: 5168: 5165: 5162: 5159: 5156: 5153: 5150: 5147: 5141: 5140: 5137: 5134: 5131: 5128: 5125: 5122: 5119: 5116: 5110: 5109: 5106: 5103: 5100: 5097: 5094: 5091: 5088: 5085: 5082: 5079: 5076: 5073: 5070: 5067: 5064: 5061: 5055: 5050: 5044: 5039: 5038: 5035: 5032: 5029: 5026: 5023: 5020: 5017: 5014: 5011: 5008: 5005: 5002: 4993: 4992: 4989: 4986: 4980: 4979: 4976: 4973: 4967: 4966: 4963: 4960: 4957: 4951: 4950: 4947: 4944: 4941: 4938: 4935: 4932: 4929: 4926: 4923: 4920: 4917: 4914: 4911: 4908: 4902: 4901: 4898: 4895: 4892: 4889: 4886: 4883: 4880: 4877: 4874: 4871: 4868: 4865: 4859: 4847: 4846: 4843: 4840: 4837: 4834: 4831: 4828: 4825: 4822: 4819: 4816: 4813: 4810: 4807: 4804: 4801: 4798: 4795: 4792: 4789: 4786: 4783: 4780: 4777: 4771: 4770: 4767: 4764: 4761: 4758: 4755: 4752: 4749: 4746: 4743: 4740: 4737: 4734: 4731: 4725: 4716: 4713: 4712: 4709: 4706: 4703: 4700: 4697: 4694: 4691: 4688: 4685: 4682: 4679: 4676: 4673: 4670: 4667: 4664: 4661: 4658: 4655: 4652: 4649: 4646: 4643: 4640: 4637: 4634: 4631: 4628: 4625: 4622: 4619: 4616: 4613: 4606: 4602: 4599: 4593: 4585: 4584: 4581: 4578: 4575: 4572: 4569: 4566: 4563: 4560: 4557: 4554: 4540: 4535: 4534: 4531: 4528: 4525: 4522: 4519: 4516: 4513: 4510: 4507: 4504: 4501: 4498: 4495: 4492: 4489: 4486: 4483: 4480: 4477: 4474: 4468: 4467: 4464: 4461: 4458: 4455: 4452: 4449: 4446: 4443: 4440: 4437: 4434: 4431: 4428: 4425: 4422: 4419: 4416: 4413: 4410: 4407: 4404: 4401: 4398: 4395: 4392: 4389: 4386: 4383: 4380: 4377: 4374: 4371: 4368: 4365: 4362: 4359: 4356: 4353: 4350: 4347: 4344: 4341: 4338: 4335: 4332: 4329: 4326: 4323: 4320: 4317: 4314: 4311: 4308: 4305: 4302: 4299: 4296: 4293: 4290: 4280: 4279: 4276: 4273: 4270: 4267: 4264: 4261: 4258: 4255: 4252: 4246: 4245: 4242: 4239: 4236: 4233: 4230: 4227: 4224: 4210: 4204: 4188: 4187: 4184: 4181: 4178: 4175: 4172: 4169: 4166: 4162: 4159: 4156: 4152: 4149: 4146: 4143: 4140: 4137: 4134: 4131: 4130: 4127: 4124: 4121: 4118: 4115: 4112: 4109: 4106: 4103: 4100: 4097: 4094: 4090: 4087: 4084: 4078: 4073: 4072: 4069: 4066: 4063: 4060: 4057: 4054: 4051: 4048: 4045: 4042: 4039: 4036: 4033: 4030: 4027: 4024: 4021: 4018: 4012: 4011: 4008: 4005: 4002: 3999: 3996: 3993: 3990: 3987: 3984: 3981: 3978: 3975: 3972: 3969: 3959: 3949: 3937: 3936: 3933: 3930: 3927: 3924: 3921: 3918: 3915: 3912: 3909: 3906: 3903: 3900: 3897: 3894: 3891: 3888: 3885: 3882: 3879: 3876: 3873: 3870: 3867: 3864: 3861: 3858: 3855: 3852: 3849: 3846: 3843: 3840: 3837: 3834: 3831: 3828: 3825: 3822: 3819: 3816: 3813: 3810: 3807: 3804: 3801: 3798: 3795: 3792: 3789: 3786: 3783: 3780: 3777: 3774: 3771: 3768: 3765: 3762: 3759: 3756: 3753: 3750: 3747: 3744: 3741: 3735: 3712: 3711: 3708: 3705: 3702: 3699: 3696: 3693: 3690: 3687: 3684: 3681: 3675: 3670: 3669: 3666: 3663: 3660: 3657: 3654: 3651: 3648: 3645: 3642: 3639: 3636: 3633: 3630: 3627: 3624: 3621: 3618: 3615: 3612: 3609: 3606: 3603: 3600: 3597: 3594: 3591: 3588: 3585: 3582: 3579: 3576: 3573: 3570: 3567: 3564: 3561: 3558: 3555: 3549: 3544: 3543: 3540: 3537: 3534: 3531: 3528: 3518: 3517: 3514: 3511: 3508: 3505: 3502: 3499: 3496: 3485: 3479: 3474: 3473: 3470: 3467: 3464: 3461: 3458: 3455: 3452: 3449: 3446: 3443: 3437: 3431: 3420: 3414: 3408: 3396: 3393: 3351: 3342: 3333: 3324: 3315: 3309: 3303: 3300: 3255: 3249: 3244: 3243: 3240: 3237: 3234: 3231: 3228: 3225: 3222: 3219: 3216: 3213: 3210: 3207: 3204: 3201: 3198: 3195: 3192: 3189: 3187:Secondary_Index 3186: 3183: 3180: 3177: 3174: 3171: 3168: 3165: 3162: 3159: 3156: 3153: 3150: 3136: 3135: 3132: 3129: 3126: 3123: 3120: 3117: 3114: 3111: 3108: 3105: 3102: 3099: 3093: 3073: 3072: 3069: 3066: 3063: 3060: 3057: 3051: 3049:1972: Smalltalk 3035: 3034: 3031: 3028: 3025: 3022: 3019: 3016: 3013: 3010: 3007: 3004: 3001: 2998: 2995: 2992: 2989: 2986: 2983: 2980: 2977: 2974: 2971: 2968: 2965: 2962: 2959: 2956: 2949: 2946: 2945: 2942: 2939: 2936: 2933: 2930: 2927: 2924: 2921: 2918: 2915: 2912: 2909: 2895: 2887: 2886: 2883: 2880: 2877: 2874: 2871: 2868: 2865: 2862: 2859: 2845: 2844: 2841: 2838: 2835: 2832: 2829: 2826: 2823: 2820: 2817: 2814: 2808: 2762: 2725: 2715: 2709: 2700: 2688: 2685: 2684: 2681: 2678: 2675: 2672: 2669: 2666: 2663: 2660: 2657: 2654: 2651: 2648: 2644: 2641: 2635: 2617: 2616: 2613: 2610: 2607: 2604: 2601: 2598: 2595: 2592: 2589: 2586: 2583: 2580: 2577: 2574: 2571: 2568: 2565: 2551: 2545: 2537: 2536: 2533: 2530: 2527: 2524: 2521: 2518: 2515: 2512: 2509: 2506: 2503: 2500: 2497: 2494: 2491: 2488: 2485: 2482: 2479: 2463: 2462: 2459: 2456: 2453: 2450: 2447: 2444: 2441: 2438: 2435: 2432: 2429: 2426: 2423: 2420: 2417: 2414: 2411: 2408: 2405: 2402: 2388: 2382: 2377: 2371: 2346: 2340: 2335: 2334: 2331: 2328: 2325: 2322: 2319: 2316: 2313: 2310: 2307: 2304: 2301: 2298: 2295: 2292: 2289: 2286: 2283: 2280: 2277: 2274: 2271: 2268: 2265: 2262: 2259: 2256: 2253: 2250: 2247: 2244: 2241: 2238: 2235: 2232: 2229: 2226: 2223: 2220: 2217: 2214: 2207: 2203: 2196: 2195:is the same as 2192: 2189: 2188: 2185: 2182: 2179: 2176: 2173: 2170: 2167: 2164: 2161: 2158: 2155: 2152: 2149: 2146: 2143: 2140: 2137: 2134: 2131: 2128: 2125: 2122: 2119: 2116: 2113: 2110: 2107: 2104: 2101: 2098: 2095: 2092: 2089: 2086: 2083: 2080: 2077: 2074: 2071: 2068: 2065: 2062: 2059: 2056: 2053: 2050: 2047: 2041: 2040: 2037: 2034: 2031: 2028: 2025: 2022: 2019: 2016: 2013: 2010: 2007: 2004: 2001: 1998: 1992: 1991: 1988: 1985: 1982: 1979: 1976: 1973: 1970: 1967: 1964: 1961: 1958: 1955: 1952: 1949: 1946: 1943: 1940: 1937: 1934: 1931: 1928: 1925: 1922: 1919: 1912: 1911: 1908: 1905: 1902: 1899: 1896: 1893: 1890: 1887: 1884: 1881: 1878: 1875: 1868: 1864: 1860: 1857: 1851: 1842: 1830: 1824: 1818: 1813: 1812: 1809: 1806: 1803: 1800: 1797: 1794: 1791: 1788: 1785: 1782: 1779: 1776: 1772: 1765: 1747: 1743: 1739: 1736: 1722: 1713: 1705: 1701: 1697: 1693: 1689: 1685: 1678: 1674: 1667: 1666: 1663: 1660: 1657: 1654: 1651: 1648: 1645: 1642: 1639: 1636: 1633: 1630: 1627: 1624: 1621: 1618: 1615: 1612: 1609: 1606: 1603: 1600: 1597: 1594: 1591: 1588: 1585: 1582: 1579: 1576: 1573: 1570: 1567: 1564: 1561: 1558: 1555: 1552: 1549: 1546: 1543: 1540: 1537: 1534: 1503: 1490: 1489: 1486: 1483: 1480: 1477: 1474: 1471: 1468: 1465: 1462: 1459: 1456: 1453: 1450: 1447: 1444: 1441: 1438: 1435: 1432: 1429: 1426: 1423: 1420: 1417: 1414: 1411: 1408: 1405: 1402: 1399: 1393: 1392: 1389: 1386: 1383: 1380: 1377: 1374: 1371: 1368: 1365: 1362: 1359: 1356: 1353: 1350: 1347: 1344: 1341: 1338: 1335: 1332: 1329: 1326: 1323: 1320: 1317: 1314: 1311: 1296: 1276: 1275: 1272: 1269: 1266: 1255: 1249: 1244: 1228: 1227: 1224: 1221: 1218: 1215: 1212: 1209: 1206: 1203: 1200: 1197: 1194: 1191: 1188: 1185: 1182: 1179: 1176: 1173: 1170: 1167: 1164: 1161: 1158: 1155: 1152: 1149: 1146: 1143: 1140: 1137: 1134: 1131: 1128: 1125: 1122: 1119: 1116: 1113: 1110: 1107: 1104: 1101: 1098: 1092: 1091: 1088: 1085: 1082: 1079: 1076: 1073: 1070: 1067: 1064: 1061: 1058: 1055: 1052: 1049: 1046: 1043: 1040: 1037: 1034: 1031: 1028: 1025: 1022: 1019: 1016: 1013: 1010: 1007: 1004: 1001: 998: 995: 992: 989: 986: 983: 969: 941:multiplications 876: 840: 827: 819: 818: 815: 812: 809: 806: 803: 800: 797: 794: 791: 788: 785: 782: 779: 766: 713:right-hand-side 694: 673: 672: 669: 666: 663: 660: 657: 654: 651: 648: 645: 630: 624: 612: 611: 608: 605: 602: 599: 596: 593: 590: 587: 584: 581: 578: 575: 572: 569: 566: 563: 560: 557: 554: 551: 548: 545: 542: 539: 536: 533: 530: 527: 524: 521: 518: 515: 512: 509: 506: 503: 500: 497: 494: 477:Stephen Johnson 437: 436: 433: 430: 427: 424: 421: 418: 415: 412: 409: 406: 403: 400: 397: 394: 391: 388: 385: 335: 311: 292: 287:In Fortran and 276:(1949–1951) by 254:is used as the 236:PERFORM VARYING 234: 226: 218: 191:for specifying 166: 137: 98:Loop constructs 89: 88: 85: 82: 79: 76: 73: 70: 67: 64: 61: 58: 55: 52: 49: 46: 43: 40: 37: 28: 23: 22: 15: 12: 11: 5: 6436: 6434: 6426: 6425: 6420: 6415: 6405: 6404: 6399: 6398: 6386: 6361: 6347: 6340: 6323: 6301: 6289: 6249: 6231: 6224: 6212:Wirth, Niklaus 6202: 6201: 6199: 6196: 6195: 6194: 6189: 6184: 6179: 6174: 6167: 6164: 6137: 6128: 6125: 6095: 6086: 6083: 6038: 6029: 6026: 5999: 5980: 5977: 5950: 5941: 5938: 5884: 5875: 5872: 5806: 5794: 5791: 5692: 5683: 5680: 5563: 5551: 5548: 5509: 5451: 5431: 5428: 5361: 5352: 5349: 5336:",;" 5307: 5264: 5218: 5206: 5203: 5175:",;" 5146: 5115: 5060: 5054: 5051: 5043: 5040: 5001: 4985: 4972: 4956: 4907: 4904:So, this code 4867: 4858: 4855: 4776: 4733: 4724: 4721: 4612: 4592: 4589: 4556: 4539: 4536: 4473: 4289: 4251: 4223: 4203: 4200: 4133: 4086: 4077: 4074: 4017: 3968: 3948: 3945: 3743: 3734: 3731: 3727:Imaginary unit 3683: 3674: 3671: 3557: 3548: 3545: 3527: 3495: 3478: 3475: 3442: 3430: 3427: 3364: 3259: 3248: 3245: 3149: 3101: 3092: 3089: 3059: 3050: 3047: 2955: 2919:initialization 2911: 2894: 2891: 2858: 2816: 2807: 2804: 2803: 2802: 2795: 2790: 2787: 2759: 2758: 2757: 2743: 2740:to 100 do ~ od 2736: 2723: 2708: 2707:1968: ALGOL 68 2705: 2673:/*statements*/ 2643: 2634: 2631: 2564: 2544: 2541: 2478: 2401: 2381: 2378: 2375: 2354: 2339: 2336: 2213: 2046: 2029:'(i2)' 1997: 1918: 1874: 1850: 1847: 1841: 1834: 1828: 1822: 1817: 1814: 1804:/*statements*/ 1771: 1764: 1761: 1727: 1721: 1718: 1533: 1502: 1499: 1398: 1310: 1295: 1292: 1265: 1248: 1245: 1243: 1240: 1213:"%c" 1147:"%c" 1097: 982: 968: 965: 875: 872: 835: 826: 823: 778: 745: 700:, such as the 693: 690: 644: 623: 620: 493: 461:initialization 384: 334: 331: 310: 307: 291:, the keyword 168: 167: 165: 164: 157: 150: 142: 139: 138: 136: 135: 130: 125: 120: 115: 110: 104: 101: 100: 36: 26: 24: 14: 13: 10: 9: 6: 4: 3: 2: 6435: 6424: 6421: 6419: 6416: 6414: 6411: 6410: 6408: 6396:".. iterator" 6395: 6390: 6387: 6376:on 2013-04-12 6375: 6371: 6365: 6362: 6357: 6351: 6348: 6343: 6341:0-201-37922-8 6337: 6333: 6327: 6324: 6311: 6305: 6302: 6298: 6293: 6290: 6286: 6275: 6271: 6270: 6265: 6264: 6259: 6258:Thompson, Ken 6253: 6250: 6245: 6241: 6235: 6232: 6227: 6221: 6217: 6213: 6207: 6204: 6197: 6193: 6190: 6188: 6185: 6183: 6180: 6178: 6175: 6173: 6172:Do while loop 6170: 6169: 6165: 6134: 6126: 6118:// statements 6092: 6084: 6076:// statements 6035: 6027: 5997: 5991: 5986: 5978: 5947: 5939: 5881: 5873: 5804: 5800: 5792: 5790: 5788: 5689: 5681: 5652:"*" 5561: 5557: 5549: 5507: 5449: 5437: 5429: 5427: 5425: 5358: 5350: 5318:"i" 5305: 5275:"i" 5262: 5247:"5" 5238:"1" 5229:"i" 5216: 5212: 5204: 5202: 5200: 5196: 5181:// statements 5157:"i" 5144: 5135:// statements 5113: 5104:// statements 5058: 5053:Script syntax 5052: 5049: 5041: 4999: 4996: 4983: 4970: 4954: 4905: 4896:-- statements 4864: 4857:1993: Crystal 4856: 4854: 4774: 4756:-- statements 4730: 4722: 4720: 4610: 4598: 4590: 4588: 4553: 4549: 4545: 4537: 4471: 4470:and used as: 4294:Control.Monad 4287: 4285: 4249: 4221: 4219: 4215: 4209: 4202:1990: Haskell 4201: 4199: 4135:# second form 4083: 4075: 4015: 3966: 3964: 3958: 3954: 3946: 3944: 3942: 3931:# statements; 3874:# statements; 3844:# statements; 3790:# statements; 3740: 3732: 3730: 3728: 3719: 3680: 3672: 3554: 3546: 3525: 3493: 3484: 3476: 3440: 3436: 3428: 3426: 3423: 3417: 3411: 3405: 3402: 3399: 3391: 3388: 3385: 3382: 3379: 3376: 3373: 3370: 3367: 3363: 3360: 3357: 3354: 3348: 3345: 3339: 3336: 3330: 3327: 3321: 3318: 3312: 3306: 3298: 3295: 3292: 3289: 3286: 3283: 3280: 3277: 3274: 3271: 3268: 3265: 3262: 3258: 3254: 3246: 3217:-- statements 3205:-- statements 3147: 3145: 3141: 3124:-- statements 3098: 3090: 3088: 3086: 3082: 3078: 3056: 3048: 3046: 3040: 2953: 2908: 2904: 2900: 2892: 2890: 2881:(*statement*) 2856: 2839:(*statement*) 2813: 2805: 2800: 2796: 2791: 2788: 2783: 2782: 2781: 2767: 2751: 2744: 2737: 2730: 2729: 2728: 2722: 2720: 2714: 2706: 2704: 2698: 2694: 2640: 2632: 2630: 2562: 2560: 2559:for-next loop 2556: 2550: 2542: 2540: 2476: 2474: 2470: 2469: 2399: 2397: 2392: 2387: 2379: 2374: 2370: 2366: 2362: 2358: 2353: 2345: 2337: 2224:implicit none 2211: 2200: 2044: 1995: 1916: 1872: 1856: 1849:1957: FORTRAN 1848: 1846: 1839: 1835: 1833: 1827: 1821: 1815: 1769: 1762: 1760: 1734: 1730: 1726: 1719: 1717: 1711: 1682: 1531: 1529: 1524: 1520: 1516: 1511: 1508: 1500: 1498: 1495: 1396: 1308: 1305: 1301: 1293: 1291: 1263: 1260: 1259:infinite loop 1254: 1253:Infinite loop 1246: 1241: 1239: 1095: 1068:some_function 980: 978: 974: 966: 964: 962: 958: 954: 950: 946: 942: 938: 934: 930: 925: 921: 917: 913: 909: 905: 900: 898: 892: 889: 885: 881: 874:Loop counters 873: 871: 869: 865: 861: 857: 853: 849: 845: 839: 834: 832: 824: 822: 776: 769: 764: 760: 756: 752: 748: 744: 718: 714: 711: 707: 699: 691: 689: 642: 640: 636: 629: 621: 619: 617: 491: 489: 484: 480: 478: 474: 470: 466: 462: 458: 453: 446: 442: 410:(* or just *) 382: 380: 376: 372: 368: 364: 360: 356: 352: 348: 344: 340: 332: 330: 328: 324: 315: 308: 306: 304: 303: 302:do while loop 298: 290: 285: 283: 279: 275: 271: 270: 265: 261: 257: 256:reserved word 253: 249: 245: 240: 232: 224: 216: 211: 209: 205: 201: 196: 194: 190: 187: 183: 179: 175: 163: 158: 156: 151: 149: 144: 143: 141: 140: 134: 131: 129: 128:Infinite loop 126: 124: 121: 119: 116: 114: 111: 109: 108:Do while loop 106: 105: 103: 102: 99: 95: 83:"*" 32: 19: 6413:Control flow 6389: 6378:. Retrieved 6374:the original 6364: 6350: 6331: 6326: 6314:. Retrieved 6304: 6292: 6284: 6278:. Retrieved 6267: 6262: 6252: 6243: 6234: 6215: 6206: 6157:# statements 6022:# statements 5988: 5931://statement; 5880:ActionScript 5802: 5785: 5778:# statements 5742:# statements 5712:# statements 5559: 5538:// use array 5505: 5439: 5421: 5303: 5260: 5214: 5188: 5142: 5111: 5056: 4997: 4994: 4981: 4968: 4953:will print: 4952: 4903: 4848: 4772: 4714: 4698:# statements 4644:# statements 4600: 4591:1991: Python 4586: 4469: 4283: 4281: 4247: 4213: 4211: 4189: 4088:# first form 4013: 3962: 3960: 3938: 3720: 3713: 3673:1984: MATLAB 3519: 3486: 3438: 3421: 3415: 3409: 3406: 3400: 3397: 3394: 3389: 3386: 3383: 3380: 3377: 3374: 3371: 3368: 3365: 3361: 3355: 3352: 3346: 3343: 3337: 3334: 3328: 3325: 3319: 3316: 3310: 3304: 3301: 3296: 3293: 3290: 3287: 3284: 3281: 3278: 3275: 3272: 3269: 3266: 3263: 3260: 3256: 3143: 3139: 3137: 3074: 3036: 2947: 2893:1972: C, C++ 2888: 2846: 2806:1970: Pascal 2765: 2763: 2749: 2726: 2718: 2716: 2696: 2686: 2618: 2558: 2552: 2538: 2472: 2466: 2464: 2395: 2389: 2372: 2368: 2364: 2360: 2356: 2347: 2201: 2190: 2042: 1993: 1913: 1863:loop is the 1858: 1843: 1837: 1831: 1825: 1819: 1766: 1737: 1732: 1728: 1723: 1709: 1683: 1668: 1512: 1504: 1493: 1491: 1394: 1297: 1288:while (true) 1277: 1256: 1229: 1093: 976: 972: 970: 960: 956: 952: 948: 944: 923: 919: 915: 911: 907: 901: 893: 884:loop counter 883: 877: 867: 863: 859: 855: 851: 847: 843: 841: 837: 828: 820: 773:A := 0; 770: 767: 762: 758: 754: 750: 746: 716: 709: 695: 674: 661:do_something 631: 628:Foreach loop 615: 613: 485: 481: 465:loop variant 454: 438: 336: 320: 300: 296: 286: 251: 243: 241: 212: 200:loop counter 197: 186:control flow 181: 177: 171: 133:Control flow 123:Foreach loop 117: 6312:. Microsoft 6127:2012: Julia 5793:1996: OCaml 4851:exit repeat 4729:AppleScript 3489:{ ... } for 3387:# loop body 3294:# loop body 3247:1980: Maple 2764:Subsequent 2543:1964: BASIC 2534:END-PERFORM 2380:1960: COBOL 2338:1958: ALGOL 2332:end program 2210:statement. 1273://loop body 897:instruction 704:keyword in 698:in parallel 585:' ' 233:which uses 208:while-loops 6407:Categories 6380:2013-03-19 6280:2020-11-16 6225:0138803692 6198:References 6182:While loop 6085:2010: Rust 5682:1995: Ruby 5436:JavaScript 5351:1995: Java 5330:delimiters 5309:<cfloop 5266:<cfloop 5220:<cfloop 5205:Tag syntax 5189:The above 5169:delimiters 4277:statements 4243:statements 4076:1989: Bash 3733:1987: Perl 3706:statements 3535:STATEMENTS 3509:STATEMENTS 3483:PostScript 2766:extensions 2633:1964: PL/I 2439:SQ-ROUTINE 2406:SQ-ROUTINE 2365:Difference 2357:Identifier 1903:statements 1589:statements 1528:subroutine 1481:statements 1472:statements 1451:statements 1424:statements 1381:statements 1357:statements 1330:statements 943:are often 706:Fortran 95 457:C language 445:equal sign 441:assignment 113:While loop 6244:Learn C++ 5979:2008: Nim 5550:1995: PHP 4475:forLoopM_ 4438:forLoopM_ 4387:forLoopM_ 4303:forLoopM_ 3907:$ counter 3880:statement 3829:$ counter 3817:$ counter 3805:$ counter 3775:$ counter 3763:$ counter 3751:$ counter 3559:procedure 3091:1980: Ada 3077:Smalltalk 3055:Smalltalk 2950:statement 2943:statement 2937:decrement 2931:increment 2925:condition 2855:, as in: 2731:only the 1909:statement 1871:loop is: 1759:changed. 1523:immutable 1280:while (1) 902:A common 469:condition 434:statement 407:statement 274:Superplan 242:The name 193:iteration 189:statement 6274:Archived 6166:See also 6028:2009: Go 5446:continue 5024:contacts 4890:interval 4717:range(6) 4548:Oberon-2 4284:forLoop_ 3238:Counting 3226:Triangle 3211:Counting 3178:Triangle 3151:Counting 2799:parallel 2713:ALGOL 68 2344:ALGOL 58 2218:program 2051:PROGRAM 1989:CONTINUE 1838:for-loop 1725:such as 1507:compiler 1369:disaster 1304:continue 1284:for (;;) 831:ALGOL 68 733:A(i - 1) 682:for each 635:iterator 264:ALGOL 60 260:ALGOL 58 244:for-loop 204:variable 202:or loop 182:for loop 178:for-loop 118:For loop 18:For-loop 6316:29 June 6269:YouTube 6177:Foreach 5994:foreach 5925:counter 5913:counter 5895:counter 5772:counter 5733:counter 5697:counter 5018:address 4607:range() 4603:foreach 4561:Counter 4218:monadic 4216:maps a 4208:Haskell 3604:9999999 3574:Integer 3199:Counter 3160:Counter 3106:Counter 3085:closure 2863:Counter 2821:Counter 2793:foreach 2733:do ~ od 2701:ITERATE 2693:labeled 2647:counter 2483:VARYING 2480:PERFORM 2409:VARYING 2403:PERFORM 2269:9999999 2236:integer 2227:integer 2087:9999999 2035:counter 2002:counter 1968:COUNTER 1929:COUNTER 1882:counter 1855:Fortran 1757:A(last) 1484:END DO 1475:END DO 1460:trouble 967:Example 933:indices 759:for all 737:for all 702:for all 606:println 467:), the 297:do-loop 223:Fortran 6338:  6222:  5992:has a 5973:EndFor 5853:downto 5670:" 5498:// ... 5290:" 5284:" 4974:ipairs 4844:repeat 4820:repeat 4768:repeat 4735:repeat 4715:Using 4550:, and 4291:import 3679:MATLAB 3631:Sum_Sq 3625:Sum_Sq 3613:Sum_Sq 3568:Sum_Sq 3541:repeat 3422:end do 2905:, and 2872:downto 2849:downto 2778:downto 2695:, and 2528:SUM-SQ 2457:SUM-SQ 2317:end do 2193:SUM SQ 2174:FORMAT 2159:PRINT 2038:end do 1974:FORMAT 1661:END DO 1652:PRINT 1586:normal 1571:ADJUST 1466:CYCLE 1387:END DO 1290:form. 1207:printf 959:, and 931:where 914:, and 675:Where 639:Python 594:System 567:System 543:System 367:MATLAB 359:Oberon 355:Modula 351:Pascal 343:Simula 327:syntax 77:printf 6058:<= 5916:<= 5799:OCaml 5724:times 5628:<= 5586:<= 5526:array 5442:break 5312:index 5278:array 5269:index 5223:index 5199:Railo 5195:Lucee 5151:index 5083:<= 5012:phone 4987:pairs 4936:print 4878:start 4814:false 4701:print 4671:range 4647:print 4623:range 4526:-> 4453:where 4378:-> 4366:-> 4357:-> 4348:-> 4339:-> 4330:-> 4321:-> 4315:=> 4309:Monad 4271:-> 4256:<- 4237:-> 4225:forM_ 4214:forM_ 4155:i< 4040:<= 3820:<= 3766:<= 3616:<= 3586:begin 3419:, or 3378:while 3353:while 3285:while 2999:<= 2785:until 2747:while 2697:leave 2689:LEAVE 2626:CYCLE 2602:PRINT 2555:BASIC 2549:BASIC 2501:UNTIL 2427:UNTIL 2391:COBOL 2386:COBOL 2369:Limit 2329:sumsq 2320:print 2302:sumsq 2296:sumsq 2278:sumsq 2245:sumsq 2233:sumsq 2204:GO TO 2197:SUMSQ 2171:206 2168:SUMSQ 2156:200 2126:199 2017:write 1950:WRITE 1906:label 1888:first 1879:label 1740:first 1710:print 1595:PRINT 1351:CYCLE 1300:break 1236:elppa 1232:apple 1186:>= 1153:& 1141:scanf 868:N + 1 856:false 729:i = 2 579:print 555:print 422:first 395:first 371:OCaml 347:BASIC 339:ALGOL 282:ALGOL 231:COBOL 225:use " 217:use " 215:ALGOL 184:is a 6336:ISBN 6318:2011 6220:ISBN 5928:++){ 5901:uint 5865:done 5835:done 5787:Ruby 5754:upto 5661:echo 5649:echo 5477:< 5444:and 5387:< 5339:> 5321:list 5293:> 5250:> 5232:from 5197:and 5191:list 5160:list 5148:loop 5006:name 4884:stop 4823:with 4744:from 4738:with 4523:indx 4496:< 4465:indx 4462:incr 4456:next 4447:incr 4444:prop 4441:next 4429:next 4426:prop 4420:when 4411:indx 4396:incr 4393:prop 4390:indx 4333:Bool 4268:indx 4259:forM 4234:indx 4196:done 4194:and 4185:done 4176:echo 4128:done 4119:echo 3955:and 3739:Perl 3658:loop 3622:then 3619:1000 3607:loop 3562:Main 3462:thru 3456:step 3395:The 3326:from 3308:and 3267:from 3235:loop 3223:loop 3208:exit 3202:loop 3175:loop 3144:exit 3140:exit 3138:The 3130:loop 3121:loop 2948:The 2776:and 2774:upto 2745:the 2687:The 2639:PL/I 2624:and 2622:EXIT 2611:NEXT 2593:STEP 2510:1000 2507:> 2489:FROM 2436:1000 2433:> 2415:FROM 2361:Base 2355:FOR 2293:exit 2281:> 2221:main 2208:EXIT 2138:SUM 2129:SUM 2111:1000 2096:SUM 2057:SUM 2054:MAIN 1900:step 1894:last 1748:step 1746:and 1744:last 1375:EXIT 1345:good 1302:and 1270:(;;) 1120:< 1047:< 1005:< 975:and 939:and 937:sums 935:for 882:, a 852:true 838:etc. 755:next 725:A(i) 649:item 641:is: 522:< 488:Java 428:last 401:last 289:PL/I 176:, a 59:< 6160:end 6139:for 6097:for 6040:for 6001:for 5990:Nim 5952:For 5892:var 5886:for 5841:for 5811:for 5781:end 5745:end 5715:end 5694:for 5637:$ j 5631:$ i 5625:$ j 5613:$ j 5607:for 5595:$ i 5583:$ i 5571:$ i 5565:for 5556:PHP 5541:... 5520:key 5517:var 5511:for 5459:var 5453:for 5369:int 5363:for 5117:for 5062:for 5036:end 5003:for 4948:end 4909:for 4899:end 4869:for 4841:end 4835:log 4808:5.1 4778:set 4765:end 4759:log 4662:for 4614:for 4582:END 4558:FOR 4499:len 4487:Int 4179:$ i 4165:i++ 4138:for 4122:$ i 4091:for 4019:For 3901:for 3883:for 3850:for 3796:for 3745:for 3721:As 3709:end 3685:for 3664:end 3655:end 3646:end 3589:for 3515:for 3465:0.9 3459:0.1 3453:0.5 3444:for 3416:end 3366:for 3317:for 3261:for 3232:end 3220:end 3184:for 3157:for 3127:end 3103:for 3070:do: 3064:to: 3043:for 3039:C99 3020:sum 2981:int 2975:for 2963:sum 2960:int 2913:for 2903:C++ 2860:for 2818:for 2754:for 2719:the 2679:end 2575:FOR 2553:In 2513:ADD 2473:for 2442:ADD 2396:for 2350:for 2287:0.0 2284:100 2254:do 2186:END 2162:206 2123:200 2072:199 2069:DO 1999:do 1920:DO 1876:DO 1861:for 1807:end 1729:for 1535:DO 1519:C++ 1517:or 1494:not 1433:DO 1406:DO 1312:DO 1267:for 1165:for 1099:for 1026:for 1008:100 984:for 878:In 850:is 757:i; 747:for 721:for 717:any 710:all 686:for 646:for 609:(); 600:out 573:out 549:out 525:100 504:int 498:for 449:int 413:for 386:for 363:Ada 309:FOR 269:für 252:For 248:for 219:for 180:or 172:In 38:for 6409:: 6283:. 6272:. 6266:. 6260:. 6242:. 6154:10 6112:10 6109:.. 6103:in 6070:++ 6061:10 6046::= 6016:10 6013:.. 6007:in 5967:10 5964:To 5868:;; 5859:do 5838:;; 5829:do 5823:to 5766:do 5727:do 5706:.. 5700:in 5667:\n 5640:++ 5598:++ 5523:in 5489:++ 5426:. 5399:++ 5287:## 5241:to 5201:. 5126:in 5095:++ 5030:do 5027:() 5021:in 4990:() 4977:() 4933:do 4893:do 4849:A 4829:in 4784:to 4750:to 4692:): 4668:in 4638:): 4620:in 4576:DO 4570:TO 4564::= 4546:, 4529:do 4517:$ 4484::: 4435:$ 4405:do 4384:() 4372:() 4306::: 4297:as 4274:do 4262:$ 4240:do 4228:$ 4192:do 4170:do 4167:)) 4141:(( 4113:do 4095:in 4052:+= 3970:Do 3963:Do 3916:.. 3904:my 3889:.. 3859:.. 3832:++ 3802:my 3778:++ 3703:-- 3649:if 3640:** 3628::= 3610:if 3601:.. 3595:in 3577::= 3565:is 3468:do 3425:. 3413:, 3410:od 3398:in 3392:; 3390:od 3384:do 3372:in 3350:, 3344:to 3341:, 3335:by 3332:, 3311:od 3305:do 3299:; 3297:od 3291:do 3279:to 3273:by 3196:.. 3190:in 3169:.. 3163:in 3115:.. 3109:in 3023:+= 3008:++ 2901:, 2878:do 2866::= 2853:to 2836:do 2830:to 2824::= 2770:to 2661:by 2655:to 2645:do 2608:40 2599:30 2590:15 2587:TO 2572:20 2566:10 2561:. 2525:TO 2522:2 2519:** 2498:1 2495:BY 2492:1 2454:TO 2451:2 2448:** 2424:1 2421:BY 2418:1 2367:) 2359:= 2311:** 2272:if 2239::: 2230::: 2180:I2 2150:** 2141:SQ 2132:SQ 2120:TO 2117:GO 2105:GT 2099:SQ 2090:IF 2060:SQ 1980:I2 1869:DO 1865:DO 1798:15 1795:to 1792:12 1773:do 1742:, 1733:do 1622:), 1610:), 1487:X1 1478:X2 1469:X1 1454:IF 1427:X2 1400:X1 1363:IF 1342:no 1336:IF 1238:. 1222:); 1198:-- 1159:); 1132:++ 1083:); 1059:++ 1050:10 1017:++ 979:: 961:kk 957:jj 955:, 953:ii 947:, 910:, 860:is 763:do 751:do 743:. 688:. 670:() 664:() 652:in 588:); 564:); 534:++ 490:. 479:. 431:do 425:.. 404:do 398:to 375:F# 373:, 369:, 365:, 361:, 357:, 353:, 349:, 345:, 341:, 305:. 293:DO 250:. 239:. 227:do 86:); 71:++ 6383:. 6358:. 6344:. 6320:. 6246:. 6228:. 6151:: 6148:1 6145:= 6142:j 6121:} 6115:{ 6106:0 6100:i 6079:} 6073:{ 6067:i 6064:; 6055:i 6052:; 6049:0 6043:i 6019:: 6010:5 6004:i 5961:1 5958:= 5955:i 5934:} 5922:; 5919:5 5910:; 5907:1 5904:= 5898:: 5889:( 5856:0 5850:5 5847:= 5844:j 5826:5 5820:1 5817:= 5814:i 5775:| 5769:| 5763:) 5760:5 5757:( 5751:. 5748:1 5736:| 5730:| 5721:. 5718:5 5709:5 5703:1 5676:} 5673:; 5658:} 5655:; 5646:{ 5643:) 5634:; 5622:; 5619:0 5616:= 5610:( 5604:{ 5601:) 5592:; 5589:5 5580:; 5577:0 5574:= 5568:( 5544:} 5532:{ 5529:) 5514:( 5501:} 5495:{ 5492:) 5486:i 5483:; 5480:5 5474:i 5471:; 5468:0 5465:= 5462:i 5456:( 5417:} 5405:{ 5402:) 5396:i 5393:; 5390:5 5384:i 5381:; 5378:0 5375:= 5372:i 5366:( 5333:= 5324:= 5315:= 5281:= 5272:= 5244:= 5235:= 5226:= 5184:} 5178:{ 5172:= 5163:= 5154:= 5138:} 5132:{ 5129:) 5123:i 5120:( 5107:} 5101:{ 5098:) 5092:i 5089:; 5086:5 5080:i 5077:; 5074:1 5071:= 5068:i 5065:( 5015:, 5009:, 4964:5 4961:3 4958:1 4945:) 4942:i 4939:( 4930:2 4927:, 4924:5 4921:, 4918:1 4915:= 4912:i 4887:, 4881:, 4875:= 4872:i 4838:i 4832:x 4826:i 4817:} 4811:, 4805:, 4799:, 4793:, 4790:1 4787:{ 4781:x 4762:i 4753:5 4747:1 4741:i 4710:) 4707:i 4704:( 4689:1 4686:+ 4683:6 4680:, 4677:1 4674:( 4665:i 4656:) 4653:i 4650:( 4635:6 4632:, 4629:1 4626:( 4617:i 4573:5 4567:1 4520:\ 4514:) 4511:1 4508:+ 4505:( 4502:) 4493:( 4490:) 4481:0 4478:( 4459:= 4450:f 4432:) 4423:( 4417:. 4414:M 4408:f 4402:= 4399:f 4381:m 4375:) 4369:m 4363:a 4360:( 4354:) 4351:a 4345:a 4342:( 4336:) 4327:a 4324:( 4318:a 4312:m 4300:M 4265:\ 4231:\ 4163:; 4160:5 4157:= 4153:; 4150:1 4147:= 4144:i 4110:5 4107:4 4104:3 4101:2 4098:1 4093:i 4070:] 4067:f 4064:, 4061:1 4058:. 4055:0 4049:x 4046:, 4043:1 4037:x 4034:, 4031:0 4028:= 4025:x 4022:[ 4009:] 4006:} 4003:1 4000:. 3997:0 3994:, 3991:1 3988:, 3985:0 3982:, 3979:x 3976:{ 3973:, 3939:" 3934:} 3925:{ 3922:) 3919:5 3913:1 3910:( 3895:; 3892:5 3886:1 3877:} 3868:{ 3865:) 3862:5 3856:1 3853:( 3847:} 3838:{ 3835:) 3826:; 3823:5 3814:; 3811:1 3808:= 3799:( 3793:} 3784:{ 3781:) 3772:; 3769:5 3760:; 3757:1 3754:= 3748:( 3723:i 3716:n 3700:5 3697:: 3694:1 3691:= 3688:n 3667:; 3661:; 3652:; 3643:2 3637:I 3634:+ 3598:1 3592:I 3583:; 3580:0 3571:: 3538:} 3532:{ 3529:5 3512:} 3506:{ 3503:6 3500:1 3497:1 3450:: 3447:x 3401:c 3381:w 3375:c 3369:e 3356:w 3347:t 3338:b 3329:f 3320:i 3288:w 3282:t 3276:b 3270:f 3264:i 3241:; 3229:; 3214:; 3193:2 3181:: 3172:5 3166:1 3154:: 3133:; 3118:5 3112:1 3067:5 3061:1 3032:} 3029:; 3026:i 3017:{ 3014:) 3011:i 3005:; 3002:5 2996:i 2993:; 2990:1 2987:= 2984:i 2978:( 2972:; 2969:0 2966:= 2940:) 2934:/ 2928:; 2922:; 2916:( 2884:; 2875:1 2869:5 2842:; 2833:5 2827:1 2801:. 2682:; 2676:; 2667:; 2664:1 2658:5 2652:1 2649:= 2614:I 2605:I 2596:2 2584:1 2581:= 2578:I 2531:. 2516:I 2504:I 2486:I 2460:. 2445:I 2430:I 2412:I 2363:( 2326:, 2323:* 2314:2 2308:i 2305:+ 2299:= 2290:) 2275:( 2266:, 2263:1 2260:= 2257:i 2251:0 2248:= 2242:i 2183:) 2177:( 2165:, 2153:2 2147:I 2144:+ 2135:= 2114:) 2108:. 2102:. 2093:( 2084:, 2081:1 2078:= 2075:I 2066:0 2063:= 2032:) 2026:, 2023:* 2020:( 2014:5 2011:, 2008:1 2005:= 1986:9 1983:) 1977:( 1971:8 1965:) 1962:8 1959:, 1956:6 1953:( 1947:1 1944:, 1941:5 1938:, 1935:1 1932:= 1926:, 1923:9 1897:, 1891:, 1885:= 1810:; 1801:; 1789:, 1786:7 1783:, 1780:1 1777:= 1775:i 1714:I 1706:I 1702:I 1698:I 1694:I 1690:I 1686:I 1679:I 1675:I 1655:I 1646:) 1643:2 1640:, 1637:N 1634:, 1631:1 1628:= 1625:I 1619:I 1616:( 1613:B 1607:I 1604:( 1601:A 1598:( 1580:) 1577:I 1574:( 1568:= 1565:Z 1559:7 1556:= 1553:I 1550:N 1547:, 1544:1 1541:= 1538:I 1515:C 1463:) 1457:( 1448:M 1445:, 1442:1 1439:= 1436:J 1430:: 1421:N 1418:, 1415:1 1412:= 1409:I 1403:: 1372:) 1366:( 1348:) 1339:( 1327:N 1324:, 1321:1 1318:= 1315:I 1225:} 1219:a 1216:, 1210:( 1204:{ 1201:) 1195:i 1192:; 1189:0 1183:i 1180:; 1177:4 1174:= 1171:i 1168:( 1162:} 1156:a 1150:, 1144:( 1138:{ 1135:) 1129:i 1126:; 1123:6 1117:i 1114:; 1111:0 1108:= 1105:i 1102:( 1089:} 1086:} 1080:j 1077:, 1074:i 1071:( 1065:{ 1062:) 1056:j 1053:; 1044:j 1041:; 1038:i 1035:= 1032:j 1029:( 1023:{ 1020:) 1014:i 1011:; 1002:i 999:; 996:0 993:= 990:i 987:( 977:j 973:i 949:j 945:i 924:j 920:i 916:k 912:j 908:i 864:A 844:i 816:; 813:3 810:/ 807:= 804:: 801:) 798:1 795:- 792:N 789:: 786:2 783:( 780:A 741:A 658:: 603:. 597:. 591:} 582:( 576:. 570:. 561:i 558:( 552:. 546:. 540:{ 537:) 531:i 528:; 519:i 516:; 513:0 510:= 507:i 501:( 463:( 419:= 416:i 392:= 389:i 161:e 154:t 147:v 80:( 74:) 68:i 65:; 62:5 56:i 53:; 50:0 47:= 44:i 41:( 20:)

Index

For-loop

Loop constructs
Do while loop
While loop
For loop
Foreach loop
Infinite loop
Control flow
v
t
e
computer science
control flow
statement
iteration
loop counter
variable
while-loops
ALGOL
Fortran
COBOL
for
reserved word
ALGOL 58
ALGOL 60
für
Superplan
Heinz Rutishauser
ALGOL

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.