RosettaCodeData/Task/Function-definition/Erlang/function-definition.erl

13 lines
186 B
Erlang
Raw Permalink Normal View History

2013-06-05 21:47:54 +00:00
% 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.