Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Loops-Break/Erlang/loops-break.erl
Normal file
17
Task/Loops-Break/Erlang/loops-break.erl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
%% Implemented by Arjun Sunel
|
||||
-module(forever).
|
||||
-export([main/0, for/0]).
|
||||
|
||||
main() ->
|
||||
for().
|
||||
|
||||
for() ->
|
||||
K = random:uniform(19),
|
||||
io:fwrite( "~p ", [K] ),
|
||||
if K==10 ->
|
||||
ok;
|
||||
true ->
|
||||
M = random:uniform(19),
|
||||
io:format("~p~n",[M]),
|
||||
for()
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue