Loops/Downward for: Difference between revisions
Content added Content deleted
(Add Avail entry) |
m (Avail: punctuation error) |
||
Line 358: | Line 358: | ||
=={{header|Avail}}== |
=={{header|Avail}}== |
||
<lang Avail>For each i from 10 to 0 by -1 do [Print: “i” ++ "\n";];</lang> |
<lang Avail>For each i from 10 to 0 by -1 do [Print: “i” ++ "\n";];</lang> |
||
Note that <code>10 to 0 by -1</code> section isn't a fixed part of the loop syntax, but a call to the <code>_to_by_</code> method, which returns a tuple of integers in a range separated by a particular step size |
Note that <code>10 to 0 by -1</code> section isn't a fixed part of the loop syntax, but a call to the <code>_to_by_</code> method, which returns a tuple of integers in a range separated by a particular step size, in this case returning <code><10, 9, 8, 7, 6, 5, 4, 3, 2, 1></code>. |
||
=={{header|AWK}}== |
=={{header|AWK}}== |