update
This commit is contained in:
parent
1f1ad49427
commit
6f050a029e
2496 changed files with 37609 additions and 3031 deletions
13
Task/Loops-While/Erlang/loops-while.erl
Normal file
13
Task/Loops-While/Erlang/loops-while.erl
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%% Implemented by Arjun Sunel
|
||||
-module(while).
|
||||
-export([loop/0]).
|
||||
|
||||
loop() ->
|
||||
loop(1024).
|
||||
|
||||
loop(N) when N div 2 =:= 0 ->
|
||||
io:format("~w~n", [N]);
|
||||
|
||||
loop(N) when N >0 ->
|
||||
io:format("~w~n", [N]),
|
||||
loop(N div 2).
|
||||
Loading…
Add table
Add a link
Reference in a new issue