Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Function-definition/Ecstasy/function-definition.ecstasy
Normal file
14
Task/Function-definition/Ecstasy/function-definition.ecstasy
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
module MultiplyExample {
|
||||
static <Value extends Number> Value multiply(Value n1, Value n2) {
|
||||
return n1 * n2;
|
||||
}
|
||||
|
||||
void run() {
|
||||
(Int i1, Int i2) = (7, 3);
|
||||
Int i3 = multiply(i1, i2);
|
||||
(Double d1, Double d2) = (2.7182818, 3.1415);
|
||||
Double d3 = multiply(d1, d2);
|
||||
@Inject Console console;
|
||||
console.print($"{i1}*{i2}={i3}, {d1}*{d2}={d3}");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue