Loops/For with a specified step: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
||
Line 2,745: | Line 2,745: | ||
10</pre> |
10</pre> |
||
=={{header|Vlang}}== |
=={{header|V (Vlang)}}== |
||
This prints all odd digits: |
This prints all odd digits: |
||
<syntaxhighlight lang="vlang">for i := 1; i<10; i+=2 { |
<syntaxhighlight lang="v (vlang)">for i := 1; i<10; i+=2 { |
||
println(i) |
println(i) |
||
}</syntaxhighlight> |
}</syntaxhighlight> |