Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
language:introduction [2024/11/18 13:16] – [Variables and expressions] rajit | language:introduction [2025/09/04 11:09] (current) – [Loops and conditionals] rajit | ||
---|---|---|---|
Line 249: | Line 249: | ||
The parentheses are used to group the body of the loop. '' | The parentheses are used to group the body of the loop. '' | ||
the dummy variable, and it ranges from zero to eight in this | the dummy variable, and it ranges from zero to eight in this | ||
- | example. | + | example. In general if only one integer is specified for |
- | the body of the loop. | + | |
the range, the variable ranges from zero to one less than the integer. | the range, the variable ranges from zero to one less than the integer. | ||
+ | This is a special case of a more general [[syntacticreplication|syntactic replication]] construct | ||
+ | that can be used in many contexts. | ||
The conditional statement uses the guarded command notation. They are | The conditional statement uses the guarded command notation. They are |