Loops/For with a specified step: Difference between revisions

Content added Content deleted
(Added solution for Action!)
(Add CLU)
Line 937: Line 937:
(doseq [i (range 0 12 2)]
(doseq [i (range 0 12 2)]
(println i))</lang>
(println i))</lang>

=={{header|CLU}}==
<lang clu>% This prints all odd digits

start_up = proc ()
po: stream := stream$primary_output()
for i: int in int$from_to_by(1, 10, 2) do
stream$putl(po, int$unparse(i))
end
end start_up</lang>


=={{header|COBOL}}==
=={{header|COBOL}}==