Loops/Increment loop index within loop body: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
||
Line 4,774: | Line 4,774: | ||
i=42 : 99,504,028,301,131</pre> |
i=42 : 99,504,028,301,131</pre> |
||
=={{header|Vlang}}== |
=={{header|V (Vlang)}}== |
||
{{trans|go}} |
{{trans|go}} |
||
<syntaxhighlight lang="vlang">fn is_prime(n u64) bool { |
<syntaxhighlight lang="v (vlang)">fn is_prime(n u64) bool { |
||
if n % 2 == 0 { |
if n % 2 == 0 { |
||
return n == 2 |
return n == 2 |