Function definition: Difference between revisions
Replace println() with print(); replace output "syntaxhighlight" tag with "pre" tag
(Replace println() with print()) |
(Replace println() with print(); replace output "syntaxhighlight" tag with "pre" tag) |
||
Line 1,415:
=={{header|Ecstasy}}==
<syntaxhighlight lang="java">
module MultiplyExample
{
static <Value extends Number> Value multiply(Value n1, Value n2)
Line 1,430 ⟶ 1,431:
@Inject Console console;
console.print($"{i1}*{i2}={i3}, {d1}*{d2}={d3}");
// output: "7*3=21, 2.7182818*3.1415=8.539482274700001"▼
}
}
</syntaxhighlight>
{{out}}
<pre>
</pre>
=={{header|Efene}}==
|