Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Loops-N-plus-one-half/Erlang/loops-n-plus-one-half.erl
Normal file
14
Task/Loops-N-plus-one-half/Erlang/loops-n-plus-one-half.erl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
%% Implemented by Arjun Sunel
|
||||
-module(loop).
|
||||
-export([main/0]).
|
||||
|
||||
main() ->
|
||||
for_loop(1).
|
||||
|
||||
for_loop(N) ->
|
||||
if N < 10 ->
|
||||
io:format("~p, ",[N] ),
|
||||
for_loop(N+1);
|
||||
true ->
|
||||
io:format("~p\n",[N])
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue