You are viewing a single comment's thread. Return to all comments →
Anybody has any idea, how to do the first question in Elixir? This is what I tried and failed. defmodule Solution do
def input_values do a = IO.gets "" { a, _ } = Integer.parse a b = IO.gets "" { b, _ } = Integer.parse b sum = a + b IO.puts sum end end
Solve Me First FP
You are viewing a single comment's thread. Return to all comments →
Anybody has any idea, how to do the first question in Elixir? This is what I tried and failed. defmodule Solution do
Enter your code here. Read input from STDIN. Print output to STDOUT
def input_values do a = IO.gets "" { a, _ } = Integer.parse a b = IO.gets "" { b, _ } = Integer.parse b sum = a + b IO.puts sum end end