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