Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 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