Loops/For with a specified step: Difference between revisions
Content added Content deleted
m (→{{header|C++}}: bug fix, see C) |
(→{{header|Tcl}}: ++ smalltalk) |
||
Line 75: | Line 75: | ||
Output |
Output |
||
<pre>2, 4, 6, 8, who do we appreciate?</pre> |
<pre>2, 4, 6, 8, who do we appreciate?</pre> |
||
=={{header|Smalltalk}}== |
|||
<lang smalltalk>2 to: 8 by: 2 do: [ :i | |
|||
Transcript show: i; show ', ' |
|||
]. |
|||
Transcript showCr: 'enough with the cheering already!'</lang> |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |