Loops/For with a specified step: Difference between revisions
Content added Content deleted
(add Tcl) |
(Forth) |
||
Line 7: | Line 7: | ||
next i |
next i |
||
print "who do we appreciate?"</lang> |
print "who do we appreciate?"</lang> |
||
=={{header|Forth}}== |
|||
<lang forth> |
|||
: test |
|||
9 2 do |
|||
i . |
|||
2 +loop |
|||
." who do we appreciate?" cr ; |
|||
</lang> |
|||
=={{header|Haskell}}== |
=={{header|Haskell}}== |
||
<lang haskell>import Control.Monad (forM_) |
<lang haskell>import Control.Monad (forM_) |