Jump to content

Loops/For with a specified step: Difference between revisions

Add CLU
(Added solution for Action!)
(Add CLU)
Line 937:
(doseq [i (range 0 12 2)]
(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}}==
2,100

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.