Digital root/Multiplicative digital root: Difference between revisions

Content added Content deleted
m (syntax highlighting fixup automation)
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 3,480: Line 3,480:
</pre>
</pre>


=={{header|Vlang}}==
=={{header|V (Vlang)}}==
{{trans|Go}}
{{trans|Go}}
<syntaxhighlight lang="vlang">// Only valid for n > 0 && base >= 2
<syntaxhighlight lang="v (vlang)">// Only valid for n > 0 && base >= 2
fn mult(nn u64, base int) u64 {
fn mult(nn u64, base int) u64 {
mut n := nn
mut n := nn