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