Function definition: Difference between revisions
Content added Content deleted
mNo edit summary |
|||
Line 3,338: | Line 3,338: | ||
[a b] let |
[a b] let |
||
a b *].</syntaxhighlight> |
a b *].</syntaxhighlight> |
||
=={{header|V (Vlang)}}== |
|||
<syntaxhighlight lang="Zig"> |
|||
fn multiply(a f64, b f64) f64 { |
|||
return a * b |
|||
} |
|||
fn main() { |
|||
print(multiply(5, 6)) |
|||
} |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
30.0 |
|||
</pre> |
|||
=={{header|Wart}}== |
=={{header|Wart}}== |