This commit is contained in:
Ingy döt Net 2013-06-05 21:47:54 +00:00
parent 1f1ad49427
commit 6f050a029e
2496 changed files with 37609 additions and 3031 deletions

View file

@ -0,0 +1,5 @@
real
multiply(real a, real b)
{
return a * b;
}

View file

@ -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.

View file

@ -0,0 +1,3 @@
function multiply(a::Number,b::Number)
return a*b
end

View file

@ -0,0 +1 @@
multiply(a,b) = a*b