Loops/For with a specified step: Difference between revisions

J: implement the non-useful part of the task
m (→‎{{header|Dao}}: formatting, language tag)
(J: implement the non-useful part of the task)
Line 184:
=={{header|J}}==
<lang J> ' who do we appreciate?' ,~ ": 2 * >: i.4
2 4 6 8 who do we appreciate?</lang>
 
Or, using an actual for loop:
 
<lang J> 3 :0''
r=.$0
for_n. 2 * >: i.4 do.
r=.r,n
end.
' who do we appreciate?' ,~ ":n
)
2 4 6 8 who do we appreciate?</lang>
 
6,962

edits