update
This commit is contained in:
parent
1f1ad49427
commit
6f050a029e
2496 changed files with 37609 additions and 3031 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