Jump to content

Loops/For with a specified step: Difference between revisions

Bait solution
imported>Arakov
(Bait solution)
Line 565:
I++
End</syntaxhighlight>
 
=={{header|Bait}}==
<syntaxhighlight lang="bait">
fun main() {
// Print all single digit odd numbers
for i := 1; i < 10; i += 2 {
println(i)
}
}
</syntaxhighlight>
 
=={{header|BASIC}}==
24

edits

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