update
This commit is contained in:
parent
1f1ad49427
commit
6f050a029e
2496 changed files with 37609 additions and 3031 deletions
5
Task/Function-definition/Aime/function-definition.aime
Normal file
5
Task/Function-definition/Aime/function-definition.aime
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
real
|
||||
multiply(real a, real b)
|
||||
{
|
||||
return a * b;
|
||||
}
|
||||
|
|
@ -1 +1,12 @@
|
|||
multiply(A,B) -> A*B.
|
||||
% Implemented by Arjun Sunel
|
||||
-module(func_definition).
|
||||
-export([main/0]).
|
||||
|
||||
main() ->
|
||||
K=multiply(3,4),
|
||||
io :format("~p~n",[K]).
|
||||
|
||||
multiply(A,B) ->
|
||||
case {A,B} of
|
||||
{A, B} -> A * B
|
||||
end.
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
function multiply(a::Number,b::Number)
|
||||
return a*b
|
||||
end
|
||||
|
|
@ -0,0 +1 @@
|
|||
multiply(a,b) = a*b
|
||||
Loading…
Add table
Add a link
Reference in a new issue