A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
11
Task/Integer-comparison/Erlang/integer-comparison.erl
Normal file
11
Task/Integer-comparison/Erlang/integer-comparison.erl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue