Loops/For with a specified step: Difference between revisions

m
Line 560:
)
2 4 6 8 who do we appreciate?</lang>
 
That said, note also that J's '''steps''' verb lets us specify how many steps to take:
 
<lang J> i:8
_8 _7 _6 _5 _4 _3 _2 _1 0 1 2 3 4 5 6 7 8
i:8j8
_8 _6 _4 _2 0 2 4 6 8</lang>
 
=={{header|Java}}==
6,962

edits