RosettaCodeData/Task/A+B/Elixir/a+b.elixir

6 lines
135 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
IO.gets("Enter two numbers seperated by a space: ")
|> String.split
|> Enum.map(&String.to_integer(&1))
|> Enum.sum
|> IO.puts