Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Integer-comparison/Elixir/integer-comparison.elixir
Normal file
11
Task/Integer-comparison/Elixir/integer-comparison.elixir
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{a,_} = IO.gets("Enter your first integer: ") |> Integer.parse
|
||||
{b,_} = IO.gets("Enter your second integer: ") |> Integer.parse
|
||||
|
||||
cond do
|
||||
a < b ->
|
||||
IO.puts "#{a} is less than #{b}"
|
||||
a > b ->
|
||||
IO.puts "#{a} is greater than #{b}"
|
||||
a == b ->
|
||||
IO.puts "#{a} is equal to #{b}"
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue