Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Integer-comparison/Erlang/integer-comparison.erl
Normal file
17
Task/Integer-comparison/Erlang/integer-comparison.erl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
main() ->
|
||||
{ok, [N]} = io:fread("First integer: ", "~d"),
|
||||
{ok, [M]} = io:fread("First integer: ", "~d"),
|
||||
if
|
||||
N < M ->
|
||||
io:format("~b is less than ~b~n",[N,M]);
|
||||
N > M ->
|
||||
io:format("~b is greater than ~b~n",[N,M]);
|
||||
N == M ->
|
||||
io:format("~b is equal to ~b~n",[N,M])
|
||||
end.
|
||||
if
|
||||
N =< M ->
|
||||
io:format("~b is less than or equal to ~b~n",[N,M]);
|
||||
N >= M ->
|
||||
io:format("~b is greater than or equal to ~b~n",[N,M])
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue