Loops/For with a specified step: Difference between revisions

Content added Content deleted
(→‎{{header|Python}}: Removed "One liner" by Shadowys as the task is to use a for loop..)
(added swift)
Line 1,058: Line 1,058:
].
].
Transcript showCr: 'enough with the cheering already!'</lang>
Transcript showCr: 'enough with the cheering already!'</lang>

=={{header|Swift}}==
This prints all odd digits:
<lang swift>for var i = 1; i < 10; i += 2 {
println(i)
}</lang>


=={{header|Tcl}}==
=={{header|Tcl}}==