Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Function-definition/Erlang/function-definition-1.erl
Normal file
12
Task/Function-definition/Erlang/function-definition-1.erl
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
% 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,8 @@
|
|||
-module(func_definition).
|
||||
-export([main/0]).
|
||||
|
||||
main() ->
|
||||
K=multiply(3,4),
|
||||
io :format("~p~n",[K]).
|
||||
|
||||
multiply(A,B) -> A * B.
|
||||
Loading…
Add table
Add a link
Reference in a new issue