Knowledge (XXG)

While loop

Source ๐Ÿ“

122: 25: 2703:
statement and continues repeating unless the condition is false. The main difference between the two is the while loop may execute zero times if the condition is initially false, the repeat-until loop always executes at least once.
383:
function is run and x is incremented by 1. After completing all the statements in the loop body, the condition, (x < 5), is checked again, and the loop is executed again, this process repeating until the
4437:
While is a simple programming language constructed from assignments, sequential composition, conditionals, and while statements, used in the theoretical analysis of imperative programming language
2699:. While repeats one statement (unless enclosed in a begin-end block) as long as the condition is true. The repeat statement repetitively executes a block of one or more statements through an 4738: 194: 4670: 246:
construct consists of a block of code and a condition/expression. The condition/expression is evaluated, and if the condition/expression is
231: 4733: 4706: 108: 3996: 1764: 285: 46: 4563:โ€“ a programming language with the property that the functions it can compute are exactly the primitive recursive functions 3431: 3425: 3421: 3297: 2686: 2256: 187: 89: 4550: 4438: 4098: 219: 250:, the code within all of their following in the block is executed. This repeats until the condition/expression becomes 61: 4560: 3852: 3777: 1760: 385: 281: 42: 4555: 2577: 1945: 1347: 760: 595: 258:
loop checks the condition/expression before the block is executed, the control structure is often also known as a
68: 35: 1658: 1768: 1232: 277: 180: 4585:"The while and do-while Statements (The Java Tutorials > Learning the Java Language > Language Basics)" 75: 2433: 4728: 926: 57: 4584: 297: 208: 2147: 399:. When such a loop is created intentionally, there is usually another control structure (such as a 379:
first checks whether x is less than 5, which it is, so then the {loop body} is entered, where the
3988: 4702: 4666: 1442: 223: 2268: 2151: 478: 4632: 1128:'Debug.Print factorial ' Console.WriteLine(factorial) in Visual Basic .NET 4608: 82: 4722: 4695: 4535: 396: 263: 251: 162: 142: 3768:
However, an imperative programming style is often discouraged in Scheme and Racket.
1139: 1028: 400: 216: 167: 157: 132: 121: 4660: 289: 24: 4372: 4276: 2042: 1849: 860: 3978: 2264: 466: 3050:
loops are frequently used for reading data line by line (as defined by the
4540: 2260: 152: 4545: 2919:'Enter another number to return its factorial (or 0 to quit): ' 1538: 16:
Control flow statement for repeating execution until a condition is met
4701:. Oxford Paperback Reference (4th ed.). Oxford University Press. 2038: 1236: 293: 391:
It is possible, and in some cases desirable, for the condition to
120: 3584:
loop is a trivial exercise (commonly used to introduce macros):
3205: 2957: 403:
statement) that controls termination of the loop. For example:
4203: 3115: 18: 222:
that allows code to be executed repeatedly based on a given
4659:
Flemming Nielson; Hanne R. Nielson; Chris Hankin (1999).
4002:
Smalltalk also has a corresponding whileFalse: method.
1773:
The code for the loop is the same for Java, C# and D:
4162:// Set new value of factorial to factorial x counter. 954:' initial value of variable "factorial" 49:. Unsourced material may be challenged and removed. 4694: 2871:'Enter a number to return its factorial: ' 4174:// Set the new value of counter to counter - 1. 3995:as a method with one parameter, the body as a 2251:Oberon, Oberon-2, Oberon-07, Component Pascal 1671:statement when omitting some elements of the 188: 8: 3983:Contrary to other languages, in Smalltalk a 4633:"Chapter 3: The While programming language" 3407:"Help! I'm stuck in a loop!" 2675:"Help! I'm stuck in a loop!" 1125:' program goes here, until counter = 0 195: 181: 128: 4693:Illingworth, Valerie (11 December 1997). 109:Learn how and when to remove this message 3355:# Set new value of factorial to counter. 2691:Pascal has two forms of the while loop, 2638:# Set new value of factorial to counter. 1667:statement, but it has the function of a 4573: 4132:// Set the initial factorial value to 1 3054:line separator) from open filehandles: 269:, which tests the condition/expression 131: 230:loop can be thought of as a repeating 4150:// While counter(5) is greater than 0 4117:// Set the initial counter value to 5 3580:Using a macro system, implementing a 3438:is a popular way to implement loops: 7: 4579: 4577: 3343:# While counter(5) is greater than 0 47:adding citations to reliable sources 1074:' initialize factorial variable 2188:(*localize counter and factorial*) 14: 3367:# Set the counter to counter - 1. 2647:# Set the counter to counter - 1. 2626:# While counter is greater than 0 2548:", multiplication is: " 1342:ColdFusion Markup Language (CFML) 1053:' init variable and set value 300:in this case), the code fragment 4739:Programming language comparisons 4192:// Print the value of factorial. 23: 3999:, using self as the condition. 3382:# Print the value of factorial. 34:needs additional citations for 4662:Principles of Program Analysis 3784:# Calculate the factorial of 5 1765:C Sharp (programming language) 395:evaluate to true, creating an 276:For example, in the languages 1: 3426:Scheme (programming language) 3422:Racket (programming language) 3298:Python (programming language) 2687:Pascal (programming language) 2257:Oberon (programming language) 4551:Primitive recursive function 4099:Swift (programming language) 3387:Non-terminating while loop: 3224:declarefactorialfixedinitial 3182:// Multiply, then decrement. 2658:Non-terminating while loop: 4561:LOOP (programming language) 3853:Rust (programming language) 3778:Ruby (programming language) 1761:Java (programming language) 4755: 4556:General recursive function 4370: 4274: 4201: 4096: 3976: 3850: 3775: 3419: 3295: 3211:declarecounterfixedinitial 3203: 3113: 3030:# Multiply, then decrement 2955: 2684: 2608:# Set factorial value to 1 2578:Nim (programming language) 2575: 2431: 2254: 2145: 2036: 1946:Lua (programming language) 1943: 1847: 1758: 1656: 1536: 1440: 1348:ColdFusion Markup Language 1345: 1230: 1137: 1026: 924: 858: 761:APL (programming language) 758: 596:Ada (programming language) 593: 575:"Factorial = %d" 476: 3991:but defined in the class 3619:; implements a while loop 1659:Go (programming language) 465:loops will calculate the 4734:Iteration in programming 4443: 4376: 4280: 4207: 4102: 4004: 3856: 3781: 3586: 3440: 3389: 3301: 3209: 3119: 3068:"<test.txt" 3056: 2961: 2706: 2660: 2596:# Set counter value to 5 2581: 2536:"Counter is: " 2437: 2272: 2155: 2046: 1949: 1853: 1775: 1769:D (programming language) 1677: 1542: 1488:"counter GT 1" 1446: 1356: 1240: 1233:C (programming language) 1143: 1032: 930: 864: 843: 764: 599: 482: 405: 302: 262:. Compare this with the 4697:Dictionary of Computing 3430:In Racket, as in other 423:// do complicated stuff 273:the loop has executed. 125:While loop flow diagram 4609:"while (C# reference)" 2434:Maya Embedded Language 2428:Maya Embedded Language 126: 4371:Further information: 4275:Further information: 4202:Further information: 4097:Further information: 3977:Further information: 3851:Further information: 3776:Further information: 3420:Further information: 3296:Further information: 3204:Further information: 3114:Further information: 2956:Further information: 2685:Further information: 2576:Further information: 2432:Further information: 2255:Further information: 2146:Further information: 2037:Further information: 1944:Further information: 1848:Further information: 1759:Further information: 1657:Further information: 1537:Further information: 1441:Further information: 1346:Further information: 1231:Further information: 1138:Further information: 1027:Further information: 927:Microsoft Small Basic 925:Further information: 859:Further information: 759:Further information: 594:Further information: 477:Further information: 209:programming languages 124: 3325:# Set the value to 1 3313:# Set the value to 5 43:improve this article 3434:implementations, a 2148:Wolfram Mathematica 1134:Bourne (Unix) shell 605:Ada.Integer_Text_IO 388:x has the value 5. 298:use the same syntax 4640:Profs.sci.univr.it 4613:Msdn.microsoft.com 3989:language construct 3598:define-syntax-rule 127: 4672:978-3-540-65410-0 1527:</cfoutput> 1443:Tag (programming) 942:' Counter = 5 469:of the number 5: 207:In most computer 205: 204: 119: 118: 111: 93: 4746: 4713: 4712: 4700: 4690: 4684: 4683: 4681: 4679: 4656: 4650: 4649: 4647: 4646: 4637: 4629: 4623: 4622: 4620: 4619: 4605: 4599: 4598: 4596: 4595: 4581: 4525: 4522: 4519: 4516: 4513: 4510: 4507: 4504: 4501: 4498: 4495: 4492: 4489: 4486: 4483: 4480: 4477: 4474: 4471: 4468: 4465: 4462: 4459: 4456: 4453: 4450: 4447: 4433:While (language) 4428: 4425: 4422: 4419: 4416: 4413: 4410: 4407: 4404: 4401: 4398: 4395: 4392: 4389: 4386: 4383: 4380: 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: 4287: 4284: 4266: 4263: 4260: 4257: 4254: 4250: 4246: 4243: 4240: 4237: 4234: 4231: 4228: 4225: 4222: 4218: 4215: 4211: 4193: 4190: 4187: 4184: 4181: 4178: 4175: 4172: 4169: 4166: 4163: 4160: 4157: 4154: 4151: 4148: 4145: 4142: 4139: 4136: 4133: 4130: 4127: 4124: 4121: 4118: 4115: 4112: 4109: 4106: 4088: 4085: 4082: 4079: 4075: 4072: 4069: 4066: 4063: 4060: 4057: 4054: 4051: 4048: 4045: 4041: 4038: 4035: 4032: 4029: 4026: 4023: 4020: 4017: 4014: 4011: 4010:count factorial 4008: 3994: 3968: 3965: 3962: 3959: 3956: 3953: 3950: 3947: 3944: 3941: 3938: 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: 3842: 3839: 3836: 3833: 3830: 3827: 3824: 3821: 3818: 3815: 3812: 3809: 3806: 3803: 3800: 3797: 3794: 3791: 3788: 3785: 3764: 3761: 3758: 3755: 3752: 3749: 3746: 3743: 3740: 3737: 3734: 3731: 3728: 3725: 3722: 3719: 3716: 3713: 3710: 3707: 3704: 3701: 3698: 3695: 3692: 3689: 3686: 3683: 3680: 3677: 3674: 3671: 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: 3576: 3573: 3570: 3567: 3564: 3561: 3558: 3555: 3552: 3549: 3546: 3543: 3540: 3537: 3534: 3531: 3528: 3525: 3522: 3519: 3516: 3513: 3510: 3507: 3504: 3501: 3498: 3495: 3492: 3489: 3486: 3483: 3480: 3477: 3474: 3471: 3468: 3465: 3462: 3459: 3456: 3453: 3450: 3447: 3444: 3411: 3408: 3405: 3402: 3399: 3396: 3393: 3383: 3380: 3377: 3374: 3371: 3368: 3365: 3362: 3359: 3356: 3353: 3350: 3347: 3344: 3341: 3338: 3335: 3332: 3329: 3326: 3323: 3320: 3317: 3314: 3311: 3308: 3305: 3287: 3284: 3281: 3278: 3275: 3271: 3267: 3263: 3259: 3255: 3252: 3249: 3245: 3242: 3239: 3236: 3233: 3230: 3227: 3223: 3220: 3217: 3214: 3195: 3192: 3189: 3186: 3183: 3180: 3177: 3174: 3171: 3168: 3165: 3162: 3159: 3156: 3153: 3150: 3147: 3144: 3141: 3138: 3135: 3132: 3129: 3126: 3123: 3105: 3102: 3099: 3096: 3093: 3090: 3087: 3084: 3081: 3078: 3075: 3072: 3069: 3066: 3063: 3060: 3053: 3043: 3040: 3037: 3034: 3031: 3028: 3025: 3022: 3019: 3016: 3013: 3010: 3007: 3004: 3001: 2998: 2995: 2992: 2989: 2986: 2983: 2980: 2977: 2974: 2971: 2968: 2965: 2947: 2944: 2941: 2938: 2935: 2932: 2929: 2926: 2923: 2920: 2917: 2914: 2911: 2908: 2905: 2902: 2899: 2896: 2893: 2890: 2887: 2884: 2881: 2878: 2875: 2872: 2869: 2866: 2863: 2860: 2857: 2854: 2851: 2848: 2845: 2842: 2839: 2836: 2833: 2830: 2827: 2824: 2821: 2818: 2815: 2812: 2809: 2806: 2803: 2800: 2797: 2794: 2791: 2788: 2785: 2782: 2779: 2776: 2773: 2770: 2767: 2764: 2761: 2758: 2755: 2752: 2749: 2746: 2743: 2740: 2737: 2734: 2731: 2728: 2725: 2722: 2719: 2716: 2713: 2710: 2676: 2673: 2670: 2667: 2664: 2654: 2651: 2648: 2645: 2642: 2639: 2636: 2633: 2630: 2627: 2624: 2621: 2618: 2615: 2612: 2609: 2606: 2603: 2600: 2597: 2594: 2591: 2588: 2585: 2567: 2564: 2561: 2558: 2555: 2554:$ multiplication 2552: 2549: 2546: 2543: 2540: 2537: 2534: 2531: 2528: 2525: 2522: 2519: 2516: 2513: 2510: 2507: 2504: 2501: 2500:$ multiplication 2498: 2495: 2492: 2489: 2486: 2483: 2480: 2477: 2474: 2473:$ multiplication 2471: 2468: 2465: 2462: 2459: 2456: 2453: 2450: 2447: 2444: 2441: 2423: 2420: 2417: 2414: 2411: 2408: 2405: 2402: 2399: 2396: 2393: 2390: 2387: 2384: 2381: 2378: 2375: 2372: 2369: 2366: 2363: 2360: 2357: 2354: 2351: 2348: 2345: 2342: 2339: 2336: 2333: 2330: 2327: 2324: 2321: 2318: 2315: 2312: 2309: 2306: 2303: 2300: 2297: 2294: 2291: 2288: 2285: 2282: 2279: 2276: 2269:Component Pascal 2246: 2243: 2240: 2237: 2234: 2231: 2228: 2225: 2222: 2219: 2216: 2213: 2210: 2207: 2204: 2201: 2198: 2195: 2192: 2189: 2186: 2183: 2180: 2177: 2174: 2171: 2168: 2165: 2162: 2159: 2152:Wolfram Language 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: 2028: 2025: 2022: 2019: 2016: 2013: 2010: 2007: 2004: 2001: 1998: 1995: 1992: 1989: 1986: 1983: 1980: 1977: 1974: 1971: 1968: 1965: 1962: 1959: 1956: 1953: 1935: 1932: 1929: 1926: 1923: 1920: 1917: 1914: 1911: 1908: 1905: 1902: 1899: 1896: 1893: 1890: 1887: 1884: 1881: 1878: 1875: 1872: 1869: 1866: 1863: 1860: 1857: 1839: 1836: 1833: 1830: 1827: 1824: 1821: 1818: 1815: 1812: 1809: 1806: 1803: 1800: 1797: 1794: 1791: 1788: 1785: 1782: 1779: 1750: 1747: 1744: 1741: 1738: 1735: 1732: 1729: 1726: 1723: 1720: 1717: 1714: 1711: 1708: 1705: 1702: 1699: 1696: 1693: 1690: 1687: 1684: 1681: 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: 1528: 1525: 1522: 1519: 1516: 1515:<cfoutput> 1513: 1510: 1507: 1504: 1501: 1498: 1495: 1492: 1489: 1486: 1483: 1480: 1477: 1474: 1471: 1468: 1465: 1462: 1459: 1456: 1453: 1450: 1432: 1429: 1426: 1423: 1420: 1417: 1414: 1411: 1408: 1405: 1402: 1399: 1396: 1393: 1390: 1387: 1384: 1381: 1378: 1375: 1372: 1369: 1366: 1363: 1360: 1337: 1334: 1331: 1328: 1325: 1322: 1319: 1316: 1313: 1310: 1307: 1304: 1301: 1298: 1295: 1292: 1289: 1286: 1283: 1280: 1277: 1274: 1271: 1268: 1265: 1262: 1259: 1256: 1253: 1250: 1247: 1244: 1222: 1219: 1216: 1213: 1210: 1207: 1204: 1201: 1198: 1195: 1192: 1189: 1186: 1183: 1180: 1177: 1174: 1171: 1168: 1165: 1162: 1159: 1156: 1153: 1150: 1147: 1129: 1126: 1123: 1120: 1117: 1114: 1111: 1108: 1105: 1102: 1099: 1096: 1093: 1090: 1087: 1084: 1081: 1078: 1075: 1072: 1069: 1066: 1063: 1060: 1057: 1054: 1051: 1048: 1045: 1042: 1039: 1036: 1018: 1015: 1012: 1009: 1006: 1003: 1000: 997: 994: 991: 988: 985: 982: 979: 976: 973: 970: 967: 964: 961: 958: 955: 952: 949: 946: 943: 940: 937: 934: 916: 913: 910: 907: 904: 901: 898: 895: 892: 889: 886: 883: 880: 877: 874: 871: 868: 850: 847: 837: 834: 831: 828: 825: 822: 819: 816: 813: 810: 807: 804: 801: 798: 795: 792: 789: 786: 783: 780: 777: 774: 771: 768: 750: 747: 744: 741: 738: 735: 732: 729: 726: 723: 720: 717: 714: 711: 708: 705: 702: 699: 696: 693: 690: 687: 684: 681: 678: 675: 672: 669: 666: 663: 660: 657: 654: 651: 648: 645: 642: 639: 636: 633: 630: 627: 624: 621: 618: 615: 612: 609: 606: 603: 585: 582: 579: 576: 573: 570: 567: 564: 561: 558: 555: 552: 549: 546: 543: 540: 537: 534: 531: 528: 525: 522: 519: 516: 513: 510: 507: 504: 501: 498: 495: 492: 489: 486: 479:ActionScript 3.0 448: 445: 442: 439: 436: 433: 430: 427: 424: 421: 418: 415: 412: 409: 375: 372: 369: 366: 363: 360: 357: 354: 351: 348: 345: 342: 339: 336: 333: 330: 327: 324: 321: 318: 315: 312: 309: 306: 197: 190: 183: 129: 114: 107: 103: 100: 94: 92: 51: 27: 19: 4754: 4753: 4749: 4748: 4747: 4745: 4744: 4743: 4719: 4718: 4717: 4716: 4709: 4692: 4691: 4687: 4677: 4675: 4673: 4658: 4657: 4653: 4644: 4642: 4635: 4631: 4630: 4626: 4617: 4615: 4607: 4606: 4602: 4593: 4591: 4589:Dosc.oracle.com 4583: 4582: 4575: 4570: 4532: 4527: 4526: 4523: 4520: 4517: 4514: 4511: 4508: 4505: 4502: 4499: 4496: 4493: 4490: 4487: 4484: 4481: 4478: 4475: 4472: 4469: 4466: 4463: 4460: 4457: 4454: 4451: 4448: 4445: 4435: 4430: 4429: 4426: 4423: 4420: 4417: 4414: 4411: 4408: 4405: 4402: 4399: 4396: 4393: 4390: 4387: 4384: 4381: 4378: 4375: 4369: 4364: 4363: 4360: 4357: 4354: 4351: 4348: 4345: 4342: 4339: 4336: 4333: 4330: 4327: 4324: 4321: 4318: 4315: 4312: 4309: 4306: 4303: 4300: 4297: 4294: 4291: 4288: 4285: 4282: 4279: 4273: 4268: 4267: 4264: 4261: 4258: 4255: 4252: 4248: 4244: 4241: 4238: 4235: 4232: 4229: 4226: 4223: 4220: 4216: 4213: 4209: 4206: 4200: 4195: 4194: 4191: 4188: 4185: 4182: 4179: 4176: 4173: 4170: 4167: 4164: 4161: 4158: 4155: 4152: 4149: 4146: 4143: 4140: 4137: 4134: 4131: 4128: 4125: 4122: 4119: 4116: 4113: 4110: 4107: 4104: 4101: 4095: 4090: 4089: 4086: 4083: 4080: 4077: 4073: 4070: 4067: 4064: 4061: 4058: 4055: 4052: 4049: 4046: 4043: 4039: 4036: 4033: 4030: 4027: 4024: 4021: 4018: 4015: 4012: 4009: 4006: 3992: 3981: 3975: 3970: 3969: 3966: 3963: 3960: 3957: 3954: 3951: 3948: 3945: 3942: 3939: 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: 3849: 3844: 3843: 3840: 3837: 3834: 3831: 3828: 3825: 3822: 3819: 3816: 3813: 3810: 3807: 3804: 3801: 3798: 3795: 3792: 3789: 3786: 3783: 3780: 3774: 3766: 3765: 3762: 3759: 3756: 3753: 3750: 3747: 3744: 3741: 3738: 3735: 3732: 3729: 3726: 3723: 3720: 3717: 3714: 3711: 3708: 3705: 3702: 3699: 3696: 3693: 3690: 3687: 3684: 3681: 3678: 3675: 3672: 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: 3578: 3577: 3574: 3571: 3568: 3565: 3562: 3559: 3556: 3553: 3550: 3547: 3544: 3541: 3538: 3535: 3532: 3529: 3526: 3523: 3520: 3517: 3514: 3511: 3508: 3505: 3502: 3499: 3496: 3493: 3490: 3487: 3484: 3481: 3478: 3475: 3472: 3469: 3466: 3463: 3460: 3457: 3454: 3451: 3448: 3445: 3442: 3428: 3418: 3413: 3412: 3409: 3406: 3403: 3400: 3397: 3394: 3391: 3385: 3384: 3381: 3378: 3375: 3372: 3369: 3366: 3363: 3360: 3357: 3354: 3351: 3348: 3345: 3342: 3339: 3336: 3333: 3330: 3327: 3324: 3321: 3318: 3315: 3312: 3309: 3306: 3303: 3300: 3294: 3289: 3288: 3285: 3282: 3279: 3276: 3273: 3269: 3265: 3261: 3257: 3253: 3250: 3247: 3243: 3240: 3237: 3234: 3231: 3228: 3225: 3221: 3218: 3215: 3212: 3208: 3202: 3197: 3196: 3193: 3190: 3187: 3184: 3181: 3178: 3175: 3172: 3169: 3166: 3163: 3160: 3157: 3154: 3151: 3148: 3145: 3142: 3139: 3136: 3133: 3130: 3127: 3124: 3121: 3118: 3112: 3107: 3106: 3103: 3100: 3097: 3094: 3091: 3088: 3085: 3082: 3079: 3076: 3073: 3070: 3067: 3064: 3061: 3058: 3051: 3045: 3044: 3041: 3038: 3035: 3032: 3029: 3026: 3023: 3020: 3017: 3014: 3011: 3008: 3005: 3002: 2999: 2996: 2993: 2990: 2987: 2984: 2981: 2978: 2975: 2972: 2969: 2966: 2963: 2960: 2954: 2949: 2948: 2945: 2942: 2939: 2936: 2933: 2930: 2927: 2924: 2921: 2918: 2915: 2912: 2909: 2906: 2903: 2900: 2897: 2894: 2891: 2888: 2885: 2882: 2879: 2876: 2873: 2870: 2867: 2864: 2861: 2858: 2855: 2852: 2849: 2846: 2843: 2840: 2837: 2834: 2831: 2828: 2825: 2822: 2819: 2816: 2813: 2810: 2807: 2804: 2801: 2798: 2795: 2792: 2789: 2786: 2783: 2780: 2777: 2774: 2771: 2768: 2765: 2762: 2759: 2756: 2753: 2750: 2747: 2744: 2741: 2738: 2735: 2732: 2729: 2726: 2723: 2720: 2717: 2714: 2711: 2708: 2689: 2683: 2678: 2677: 2674: 2671: 2668: 2665: 2662: 2656: 2655: 2652: 2649: 2646: 2643: 2640: 2637: 2634: 2631: 2628: 2625: 2622: 2619: 2616: 2613: 2610: 2607: 2604: 2601: 2598: 2595: 2592: 2589: 2586: 2583: 2580: 2574: 2569: 2568: 2565: 2562: 2559: 2556: 2553: 2550: 2547: 2544: 2541: 2538: 2535: 2532: 2529: 2526: 2523: 2520: 2517: 2514: 2511: 2508: 2505: 2502: 2499: 2496: 2493: 2490: 2487: 2484: 2481: 2478: 2475: 2472: 2469: 2466: 2463: 2460: 2457: 2454: 2451: 2448: 2445: 2442: 2439: 2436: 2430: 2425: 2424: 2421: 2418: 2415: 2412: 2409: 2406: 2403: 2400: 2397: 2394: 2391: 2388: 2385: 2382: 2379: 2376: 2373: 2370: 2367: 2364: 2361: 2358: 2355: 2352: 2349: 2346: 2343: 2340: 2337: 2334: 2331: 2328: 2325: 2322: 2319: 2316: 2313: 2310: 2307: 2304: 2301: 2298: 2295: 2292: 2289: 2286: 2283: 2280: 2277: 2274: 2271: 2253: 2248: 2247: 2244: 2241: 2238: 2235: 2232: 2229: 2226: 2223: 2220: 2217: 2214: 2211: 2208: 2205: 2202: 2199: 2196: 2193: 2190: 2187: 2184: 2181: 2178: 2175: 2172: 2169: 2166: 2163: 2160: 2157: 2154: 2144: 2139: 2138: 2135: 2132: 2129: 2126: 2123: 2120: 2117: 2114: 2111: 2108: 2105: 2102: 2099: 2096: 2093: 2090: 2087: 2084: 2081: 2078: 2075: 2072: 2069: 2066: 2063: 2060: 2057: 2054: 2051: 2048: 2045: 2035: 2030: 2029: 2026: 2023: 2020: 2017: 2014: 2011: 2008: 2005: 2002: 1999: 1996: 1993: 1990: 1987: 1984: 1981: 1978: 1975: 1972: 1969: 1966: 1963: 1960: 1957: 1954: 1951: 1948: 1942: 1937: 1936: 1933: 1930: 1927: 1924: 1921: 1918: 1915: 1912: 1909: 1906: 1903: 1900: 1897: 1894: 1891: 1888: 1885: 1882: 1879: 1876: 1873: 1870: 1867: 1864: 1861: 1858: 1855: 1852: 1846: 1841: 1840: 1837: 1834: 1831: 1828: 1825: 1822: 1819: 1816: 1813: 1810: 1807: 1804: 1801: 1798: 1795: 1792: 1789: 1786: 1783: 1780: 1777: 1771: 1757: 1752: 1751: 1748: 1745: 1742: 1739: 1736: 1733: 1730: 1727: 1724: 1721: 1718: 1715: 1712: 1709: 1706: 1703: 1700: 1697: 1694: 1691: 1688: 1685: 1682: 1679: 1661: 1655: 1650: 1649: 1646: 1643: 1640: 1637: 1634: 1631: 1628: 1625: 1622: 1619: 1616: 1613: 1610: 1607: 1604: 1601: 1598: 1595: 1592: 1589: 1586: 1583: 1580: 1577: 1574: 1571: 1568: 1565: 1562: 1559: 1556: 1553: 1550: 1547: 1544: 1541: 1535: 1530: 1529: 1526: 1523: 1520: 1517: 1514: 1512:</cfloop> 1511: 1508: 1505: 1502: 1499: 1496: 1493: 1490: 1487: 1484: 1481: 1478: 1475: 1472: 1469: 1466: 1463: 1460: 1457: 1454: 1451: 1448: 1445: 1439: 1434: 1433: 1430: 1427: 1424: 1421: 1418: 1415: 1412: 1409: 1406: 1403: 1400: 1397: 1394: 1391: 1388: 1385: 1382: 1379: 1376: 1373: 1370: 1367: 1364: 1361: 1358: 1355: 1350: 1344: 1339: 1338: 1335: 1332: 1329: 1326: 1323: 1320: 1317: 1314: 1311: 1308: 1305: 1302: 1299: 1296: 1293: 1290: 1287: 1284: 1281: 1278: 1275: 1272: 1269: 1266: 1263: 1260: 1257: 1254: 1251: 1248: 1245: 1242: 1239: 1229: 1224: 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: 1136: 1131: 1130: 1127: 1124: 1121: 1118: 1115: 1112: 1109: 1106: 1103: 1100: 1097: 1094: 1091: 1088: 1085: 1082: 1079: 1076: 1073: 1070: 1067: 1064: 1061: 1058: 1055: 1052: 1049: 1046: 1043: 1040: 1037: 1034: 1031: 1025: 1020: 1019: 1016: 1013: 1010: 1007: 1004: 1001: 998: 995: 992: 989: 986: 983: 980: 977: 974: 971: 968: 965: 962: 959: 956: 953: 950: 947: 944: 941: 938: 935: 932: 929: 923: 918: 917: 914: 911: 908: 905: 902: 899: 896: 893: 890: 887: 884: 881: 878: 875: 872: 869: 866: 863: 857: 852: 851: 848: 845: 839: 838: 835: 832: 829: 826: 823: 820: 817: 814: 811: 808: 805: 802: 799: 796: 793: 790: 787: 784: 781: 778: 775: 772: 769: 766: 763: 757: 752: 751: 748: 745: 742: 739: 736: 733: 730: 727: 725:Integer_Text_IO 724: 721: 718: 715: 712: 709: 706: 703: 700: 697: 694: 691: 688: 685: 682: 679: 676: 673: 670: 667: 664: 661: 658: 655: 652: 649: 646: 643: 640: 637: 634: 631: 628: 625: 622: 619: 616: 613: 610: 607: 604: 601: 598: 592: 587: 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: 493: 490: 487: 484: 481: 475: 459: 450: 449: 446: 443: 440: 437: 434: 431: 428: 425: 422: 419: 416: 413: 410: 407: 377: 376: 373: 370: 367: 364: 361: 358: 355: 352: 349: 346: 343: 340: 337: 334: 331: 328: 325: 322: 319: 316: 313: 310: 307: 304: 240: 226:condition. The 201: 172: 133:Loop constructs 115: 104: 98: 95: 52: 50: 40: 28: 17: 12: 11: 5: 4752: 4750: 4742: 4741: 4736: 4731: 4721: 4720: 4715: 4714: 4707: 4685: 4671: 4651: 4624: 4600: 4572: 4571: 4569: 4566: 4565: 4564: 4558: 4553: 4548: 4543: 4538: 4531: 4528: 4444: 4434: 4431: 4377: 4368: 4365: 4352:"%d" 4281: 4272: 4269: 4208: 4199: 4196: 4103: 4094: 4091: 4005: 3987:loop is not a 3974: 3971: 3955:"{}" 3857: 3848: 3845: 3782: 3773: 3770: 3587: 3441: 3417: 3414: 3390: 3302: 3293: 3290: 3210: 3201: 3198: 3120: 3111: 3108: 3057: 2962: 2953: 2950: 2707: 2682: 2679: 2661: 2582: 2573: 2570: 2560:"\n" 2438: 2429: 2426: 2273: 2252: 2249: 2209:(*While loop*) 2156: 2143: 2140: 2047: 2034: 2033:MATLAB, Octave 2031: 1950: 1941: 1938: 1854: 1845: 1842: 1776: 1756: 1753: 1678: 1654: 1651: 1543: 1534: 1531: 1447: 1438: 1435: 1357: 1354: 1351: 1343: 1340: 1324:"%d" 1241: 1228: 1225: 1144: 1135: 1132: 1033: 1024: 1021: 931: 922: 919: 865: 856: 853: 844: 765: 756: 753: 600: 591: 588: 483: 474: 473:ActionScript 3 471: 458: 453:Demonstrating 451: 406: 303: 254:. Because the 239: 236: 203: 202: 200: 199: 192: 185: 177: 174: 173: 171: 170: 165: 160: 155: 150: 145: 139: 136: 135: 117: 116: 31: 29: 22: 15: 13: 10: 9: 6: 4: 3: 2: 4751: 4740: 4737: 4735: 4732: 4730: 4727: 4726: 4724: 4710: 4708:9780192800466 4704: 4699: 4698: 4689: 4686: 4674: 4668: 4664: 4663: 4655: 4652: 4641: 4634: 4628: 4625: 4614: 4610: 4604: 4601: 4590: 4586: 4580: 4578: 4574: 4567: 4562: 4559: 4557: 4554: 4552: 4549: 4547: 4544: 4542: 4539: 4537: 4536:Do while loop 4534: 4533: 4529: 4442: 4440: 4432: 4374: 4366: 4278: 4270: 4205: 4197: 4100: 4092: 4003: 4000: 3998: 3990: 3986: 3980: 3972: 3854: 3846: 3779: 3771: 3769: 3585: 3583: 3439: 3437: 3433: 3427: 3423: 3415: 3388: 3299: 3291: 3207: 3199: 3117: 3109: 3055: 3049: 2959: 2951: 2705: 2702: 2698: 2694: 2688: 2680: 2659: 2579: 2571: 2435: 2427: 2270: 2266: 2262: 2258: 2250: 2236:(*Decrement*) 2153: 2149: 2141: 2044: 2040: 2032: 1947: 1939: 1851: 1843: 1774: 1770: 1766: 1762: 1754: 1676: 1674: 1670: 1666: 1660: 1652: 1647:FactorialProg 1548:FactorialProg 1540: 1532: 1444: 1436: 1353:Script syntax 1352: 1349: 1341: 1238: 1234: 1226: 1141: 1133: 1030: 1022: 928: 920: 862: 854: 842: 762: 754: 597: 589: 480: 472: 470: 468: 464: 456: 452: 444:// more stuff 432:someCondition 404: 402: 398: 397:infinite loop 394: 389: 387: 382: 301: 299: 295: 291: 287: 283: 279: 274: 272: 268: 266: 261: 260:pre-test loop 257: 253: 249: 245: 237: 235: 233: 229: 225: 221: 218: 214: 210: 198: 193: 191: 186: 184: 179: 178: 176: 175: 169: 166: 164: 163:Infinite loop 161: 159: 156: 154: 151: 149: 146: 144: 143:Do while loop 141: 140: 138: 137: 134: 130: 123: 113: 110: 102: 91: 88: 84: 81: 77: 74: 70: 67: 63: 60: โ€“  59: 55: 54:Find sources: 48: 44: 38: 37: 32:This article 30: 26: 21: 20: 4729:Control flow 4696: 4688: 4676:. Retrieved 4665:. Springer. 4661: 4654: 4643:. Retrieved 4639: 4627: 4616:. Retrieved 4612: 4603: 4592:. Retrieved 4588: 4436: 4001: 3993:BlockClosure 3984: 3982: 3767: 3581: 3579: 3435: 3429: 3386: 3047: 3046: 2700: 2696: 2692: 2690: 2657: 2224:(*Multiply*) 1772: 1672: 1668: 1664: 1662: 1644:end program 1140:Bourne shell 1029:Visual Basic 1023:Visual Basic 840: 462: 460: 454: 392: 390: 380: 378: 347:"x = %d 275: 270: 264: 259: 255: 247: 243: 241: 232:if statement 227: 217:control flow 212: 206: 168:Control flow 158:Foreach loop 147: 105: 99:October 2016 96: 86: 79: 72: 65: 58:"While loop" 53: 41:Please help 36:verification 33: 4427:$ factorial 4412:$ factorial 4388:$ factorial 4265:$ factorial 3191:$ factorial 3167:$ factorial 3134:$ factorial 3039:$ factorial 3015:$ factorial 2982:$ factorial 2506:$ factorial 2458:$ factorial 2142:Mathematica 1755:Java, C#, D 1675:statement. 1422:writeOutput 1221:$ factorial 921:Small Basic 290:Objective-C 4723:Categories 4645:2016-10-21 4618:2016-10-21 4594:2016-10-21 4568:References 4373:PowerShell 4367:PowerShell 4277:VEX prefix 4247:factorial 4081:Transcript 4040:whileTrue: 3080:<IN> 2712:Factorial1 2130:%Decrement 2043:GNU Octave 1850:JavaScript 1844:JavaScript 1663:Go has no 1479:<cfloop 1437:Tag syntax 999:TextWindow 861:AutoHotkey 855:AutoHotkey 841:or simply 213:while loop 148:While loop 69:newspapers 4439:semantics 4418:$ counter 4403:$ counter 4379:$ counter 4358:factorial 4331:factorial 4301:factorial 4230:$ counter 4219:factorial 4186:factorial 4153:factorial 4123:factorial 4087:factorial 4050:factorial 4044:factorial 4028:factorial 3979:Smalltalk 3973:Smalltalk 3961:factorial 3922:factorial 3895:factorial 3841:factorial 3817:factorial 3796:factorial 3760:factorial 3757:displayln 3724:factorial 3715:factorial 3679:factorial 3572:factorial 3569:displayln 3527:factorial 3518:factorial 3470:factorial 3436:named-let 3376:factorial 3346:factorial 3316:factorial 3260:factorial 3256:factorial 3173:$ counter 3152:$ counter 3122:$ counter 3021:$ counter 3000:$ counter 2967:$ counter 2850:Factorial 2811:Factorial 2805:Factorial 2775:Factorial 2760:Factorial 2733:procedure 2653:factorial 2629:factorial 2599:factorial 2542:$ counter 2518:$ counter 2512:$ counter 2485:$ counter 2443:$ counter 2419:Factorial 2404:Factorial 2362:Factorial 2356:Factorial 2329:Factorial 2302:Factorial 2278:Factorial 2265:Oberon-07 2242:factorial 2212:factorial 2176:factorial 2136:factorial 2109:%Multiply 2097:factorial 2091:factorial 2061:factorial 2024:factorial 1991:factorial 1985:factorial 1961:factorial 1931:factorial 1904:factorial 1874:factorial 1826:factorial 1796:factorial 1740:factorial 1722:factorial 1686:factorial 1641:factorial 1605:factorial 1599:factorial 1572:factorial 1521:factorial 1497:factorial 1494:<cfset 1482:condition 1467:factorial 1464:<cfset 1449:<cfset 1428:factorial 1404:factorial 1371:factorial 1330:factorial 1303:factorial 1273:factorial 1182:factorial 1173:factorial 1155:factorial 1098:factorial 1092:factorial 1059:factorial 1005:WriteLine 975:factorial 969:factorial 945:factorial 915:factorial 897:factorial 876:factorial 836:factorial 800:factorial 776:factorial 746:Factorial 737:Factorial 680:Factorial 674:Factorial 638:Factorial 614:Factorial 611:procedure 581:factorial 548:factorial 509:factorial 467:factorial 296:, (which 220:statement 4541:For loop 4530:See also 3949:println! 2261:Oberon-2 1581:do while 1545:program 1017:EndWhile 827:EndWhile 386:variable 265:do while 238:Overview 153:For loop 4546:Foreach 4337:counter 4319:counter 4286:counter 4251:counter 4212:counter 4165:counter 4159:counter 4138:counter 4108:counter 3997:closure 3934:counter 3928:counter 3910:counter 3877:counter 3748:counter 3739:counter 3727:counter 3700:counter 3664:counter 3551:counter 3542:counter 3530:counter 3503:counter 3455:counter 3358:counter 3352:counter 3331:counter 3304:counter 3272:counter 3268:counter 3264:counter 3246:counter 2844:WriteLn 2829:Counter 2823:Counter 2817:Counter 2790:Counter 2766:integer 2748:integer 2742:counter 2727:integer 2709:program 2644:counter 2635:counter 2614:counter 2587:counter 2380:Counter 2368:Counter 2344:Counter 2317:Counter 2308:INTEGER 2296:Counter 2227:counter 2218:counter 2197:counter 2164:counter 2118:counter 2112:counter 2103:counter 2079:counter 2049:counter 2006:counter 2000:counter 1997:counter 1973:counter 1952:counter 1919:console 1910:counter 1892:counter 1859:counter 1832:counter 1814:counter 1781:counter 1746:counter 1728:counter 1716:counter 1704:counter 1680:counter 1620:counter 1614:counter 1611:counter 1587:counter 1566:integer 1557:counter 1551:integer 1539:Fortran 1533:Fortran 1503:counter 1452:counter 1410:counter 1389:counter 1359:counter 1203:counter 1194:counter 1188:counter 1146:counter 1113:counter 1107:counter 1104:counter 1083:counter 1065:Integer 1044:Integer 1038:counter 1011:counter 990:counter 984:counter 981:counter 960:counter 933:counter 903:counter 888:counter 867:counter 812:counter 809:counter 791:counter 767:counter 698:Counter 692:Counter 686:Counter 662:Counter 644:Integer 626:Integer 620:Counter 560:counter 554:counter 533:counter 488:counter 224:Boolean 83:scholar 4705:  4678:29 May 4669:  4346:printf 3676:define 3661:define 3592:racket 3589:#lang 3467:define 3452:define 3446:racket 3443:#lang 3432:Scheme 3416:Racket 3292:Python 2895:repeat 2880:readln 2697:repeat 2681:Pascal 2284:IMPORT 2275:MODULE 2267:, and 2039:MATLAB 1767:, and 1629:end do 1318:printf 1227:C, C++ 909:MsgBox 569:Printf 461:These 393:always 381:printf 353:" 341:printf 292:, and 85:  78:  71:  64:  56:  4636:(PDF) 4470:while 4397:while 4313:while 4224:while 4180:print 4135:while 4093:Swift 4084:show: 4068:count 4062:count 4056:count 4016:count 3985:while 3907:while 3811:<= 3805:while 3691:while 3604:while 3582:while 3401:print 3392:while 3370:print 3328:while 3241:while 3146:while 3098:close 3089:print 3074:while 3048:While 3036:print 2994:while 2928:until 2913:Write 2865:Write 2862:begin 2802:begin 2787:while 2772:begin 2701:until 2693:while 2663:while 2611:while 2530:print 2479:while 2341:WHILE 2314:BEGIN 2191:While 2158:Block 2073:while 2018:print 1970:while 1886:while 1808:while 1665:while 1632:print 1383:while 1309:count 1291:count 1285:while 1258:count 1164:while 1080:While 957:While 885:While 788:While 659:while 656:begin 527:while 463:while 457:loops 455:while 438:break 408:while 401:break 320:while 271:after 256:while 252:false 244:while 228:while 215:is a 90:JSTOR 76:books 4703:ISBN 4680:2013 4667:ISBN 4479:> 4322:> 4262:puts 4249:incr 4233:> 4141:> 3913:> 3862:main 3847:Rust 3838:puts 3772:Ruby 3745:sub1 3736:set! 3712:set! 3697:> 3655:)))) 3652:loop 3643:body 3640:test 3637:when 3628:loop 3610:body 3607:test 3560:loop 3548:sub1 3539:set! 3515:set! 3500:> 3494:when 3485:loop 3424:and 3395:True 3334:> 3248:> 3206:PL/I 3200:PL/I 3188:echo 3155:> 3059:open 3003:> 2958:Perl 2952:Perl 2898:fact 2793:> 2736:fact 2695:and 2672:echo 2666:true 2650:echo 2617:> 2488:> 2347:> 2200:> 2150:and 2082:> 2041:and 1976:> 1895:> 1817:> 1707:> 1590:> 1509:> 1491:> 1476:> 1461:> 1392:> 1294:> 1246:main 1235:and 1218:echo 1215:done 1200:$ (( 1179:$ (( 1122:Loop 1086:> 963:> 891:> 794:> 713:loop 671:loop 665:> 602:with 536:> 414:true 329:< 282:Java 267:loop 248:true 242:The 211:, a 62:news 4298:int 4283:int 4271:VEX 4245:set 4217:set 4210:set 4204:Tcl 4198:Tcl 4120:var 4105:var 3892:mut 3889:let 3874:mut 3871:let 3835:end 3751:))) 3646:... 3625:let 3613:... 3563:))) 3482:let 3283:end 3116:PHP 3110:PHP 3052:$ / 2943:end 2856:end 2838:end 2757:var 2718:var 2641:dec 2584:var 2572:Nim 2470:int 2455:int 2440:int 2416:END 2398:Int 2392:Out 2386:END 2374:DEC 2293:VAR 2287:Out 2133:end 2015:end 1940:Lua 1925:log 1871:let 1856:let 1793:int 1778:int 1701:for 1673:for 1669:for 1270:int 1255:int 1243:int 1237:C++ 1056:Dim 1035:Dim 755:APL 743:end 731:Put 719:Ada 710:end 590:Ada 563:--; 515:int 506:var 494:int 485:var 305:int 294:C++ 45:by 4725:: 4638:. 4611:. 4587:. 4576:^ 4512::= 4494::= 4488:do 4461::= 4449::= 4441:. 4421:-- 4415:*= 4361:); 4340:-- 4334:*= 4168:-= 4156:*= 4065::= 4047::= 4031::= 4019::= 3964:); 3937:-= 3925:*= 3865:() 3859:fn 3829:+= 3820:*= 3730:)) 3631:() 3554:)) 3533:)) 3488:() 3361:-= 3349:*= 3238:do 3176:-- 3170:*= 3101:IN 3062:IN 3024:-- 3018:*= 2979:my 2964:my 2931:fv 2904:fv 2886:fv 2826::= 2808::= 2799:do 2778::= 2721:Fv 2632:*= 2563:); 2521:-= 2359::= 2353:DO 2332::= 2320::= 2263:, 2259:, 2239:]; 2230:-- 2215:*= 2185:}, 2161:[{ 1982:do 1934:); 1913:-- 1907:*= 1835:-- 1829:*= 1763:, 1689::= 1653:Go 1569::: 1554::: 1506:-- 1500:*= 1431:); 1413:-- 1407:*= 1333:); 1312:-- 1306:*= 1249:() 1212:)) 1191:)) 1170:do 1077:Do 1062:As 1041:As 906:-- 900:*= 879::= 870::= 740:); 695::= 677::= 647::= 629::= 617:is 584:); 551:*= 426:if 368:++ 362:); 350:\n 288:, 286:C# 284:, 280:, 234:. 4711:. 4682:. 4648:. 4621:. 4597:. 4524:; 4521:1 4518:- 4515:C 4509:C 4506:; 4503:C 4500:* 4497:F 4491:F 4485:) 4482:1 4476:C 4473:( 4467:; 4464:1 4458:F 4455:; 4452:5 4446:C 4424:} 4409:{ 4406:) 4400:( 4394:1 4391:= 4385:5 4382:= 4355:, 4349:( 4343:; 4328:) 4325:1 4316:( 4310:; 4307:1 4304:= 4295:; 4292:5 4289:= 4259:} 4256:1 4253:- 4242:{ 4239:} 4236:0 4227:{ 4221:1 4214:5 4189:) 4183:( 4177:} 4171:1 4147:{ 4144:0 4129:1 4126:= 4114:5 4111:= 4078:. 4076:] 4074:1 4071:- 4059:. 4053:* 4042:[ 4037:. 4034:1 4025:. 4022:5 4013:| 4007:| 3967:} 3958:, 3952:( 3946:} 3943:; 3940:1 3931:; 3919:{ 3916:1 3904:; 3901:1 3898:= 3886:; 3883:5 3880:= 3868:{ 3832:1 3826:i 3823:i 3814:5 3808:i 3802:1 3799:= 3793:1 3790:= 3787:i 3763:) 3754:( 3742:( 3733:( 3721:* 3718:( 3709:( 3706:) 3703:0 3694:( 3688:( 3685:) 3682:1 3673:( 3670:) 3667:5 3658:( 3649:( 3634:( 3622:( 3616:) 3601:( 3595:( 3575:) 3566:( 3557:( 3545:( 3536:( 3524:* 3521:( 3512:( 3509:) 3506:0 3497:( 3491:( 3479:( 3476:) 3473:1 3464:( 3461:) 3458:5 3449:( 3410:) 3404:( 3398:: 3379:) 3373:( 3364:1 3340:: 3337:0 3322:1 3319:= 3310:5 3307:= 3286:; 3280:; 3277:1 3274:- 3270:= 3266:; 3262:* 3258:= 3254:) 3251:0 3244:( 3235:; 3232:) 3229:1 3226:( 3222:; 3219:) 3216:5 3213:( 3194:; 3185:} 3179:; 3164:{ 3161:) 3158:0 3149:( 3143:; 3140:1 3137:= 3131:; 3128:5 3125:= 3104:; 3095:} 3092:; 3086:{ 3083:) 3077:( 3071:; 3065:, 3042:; 3033:} 3027:; 3012:{ 3009:) 3006:0 2997:( 2991:; 2988:1 2985:= 2976:; 2973:5 2970:= 2946:. 2940:; 2937:0 2934:= 2925:; 2922:) 2916:( 2910:; 2907:) 2901:( 2892:; 2889:) 2883:( 2877:; 2874:) 2868:( 2859:; 2853:) 2847:( 2841:; 2835:1 2832:- 2820:; 2814:* 2796:0 2784:; 2781:1 2769:; 2763:: 2754:; 2751:) 2745:: 2739:( 2730:; 2724:: 2715:; 2669:: 2623:: 2620:0 2605:1 2602:= 2593:5 2590:= 2566:} 2557:+ 2551:+ 2545:+ 2539:+ 2533:( 2527:; 2524:1 2515:; 2509:* 2503:= 2497:{ 2494:) 2491:0 2482:( 2476:; 2467:; 2464:1 2461:= 2452:; 2449:5 2446:= 2422:. 2413:) 2410:0 2407:, 2401:( 2395:. 2389:; 2383:) 2377:( 2371:; 2365:* 2350:0 2338:; 2335:1 2326:; 2323:5 2311:; 2305:: 2299:, 2290:; 2281:; 2245:] 2233:; 2221:; 2206:, 2203:0 2194:[ 2182:1 2179:= 2173:, 2170:5 2167:= 2127:; 2124:1 2121:- 2115:= 2106:; 2100:* 2094:= 2088:) 2085:0 2076:( 2070:; 2067:1 2064:= 2058:; 2055:5 2052:= 2027:) 2021:( 2012:1 2009:- 2003:= 1994:* 1988:= 1979:0 1967:1 1964:= 1958:5 1955:= 1928:( 1922:. 1916:; 1901:) 1898:1 1889:( 1883:; 1880:1 1877:= 1868:; 1865:5 1862:= 1838:; 1823:) 1820:1 1811:( 1805:; 1802:1 1799:= 1790:; 1787:5 1784:= 1749:} 1743:* 1737:, 1734:1 1731:- 1725:= 1719:, 1713:{ 1710:1 1698:1 1695:, 1692:5 1683:, 1638:, 1635:* 1626:1 1623:- 1617:= 1608:* 1602:= 1596:) 1593:0 1584:( 1578:1 1575:= 1563:5 1560:= 1524:# 1518:# 1485:= 1473:1 1470:= 1458:5 1455:= 1425:( 1419:} 1416:; 1401:{ 1398:) 1395:1 1386:( 1380:; 1377:1 1374:= 1368:; 1365:5 1362:= 1336:} 1327:, 1321:( 1315:; 1300:) 1297:1 1288:( 1282:; 1279:1 1276:= 1267:; 1264:5 1261:= 1252:{ 1209:1 1206:- 1197:= 1185:* 1176:= 1167:; 1161:1 1158:= 1152:5 1149:= 1119:1 1116:- 1110:= 1101:* 1095:= 1089:0 1071:1 1068:= 1050:5 1047:= 1014:) 1008:( 1002:. 996:1 993:- 987:= 978:* 972:= 966:0 951:1 948:= 939:5 936:= 912:% 894:0 882:1 873:5 849:5 846:! 833:โ† 830:โŽ• 824:: 821:1 818:โ† 815:- 806:โ† 803:ร— 797:0 785:: 782:1 779:โ† 773:5 770:โ† 749:; 734:( 728:. 722:. 716:; 707:; 704:1 701:- 689:; 683:* 668:0 653:; 650:1 641:: 635:; 632:5 623:: 608:; 578:, 572:( 566:} 557:; 545:{ 542:) 539:1 530:( 524:; 521:1 518:= 512:: 503:; 500:5 497:= 491:: 447:} 441:; 435:) 429:( 420:{ 417:) 411:( 374:} 371:; 365:x 359:x 356:, 344:( 338:{ 335:) 332:5 326:x 323:( 317:; 314:0 311:= 308:x 278:C 196:e 189:t 182:v 112:) 106:( 101:) 97:( 87:ยท 80:ยท 73:ยท 66:ยท 39:.

Index


verification
improve this article
adding citations to reliable sources
"While loop"
news
newspapers
books
scholar
JSTOR
Learn how and when to remove this message

Loop constructs
Do while loop
While loop
For loop
Foreach loop
Infinite loop
Control flow
v
t
e
programming languages
control flow
statement
Boolean
if statement
false
do while loop
C

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

โ†‘