RosettaCodeData/Task/A+B/Nit/a+b.nit

9 lines
143 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
module ab
var words = gets.split(" ")
2017-09-23 10:01:46 +02:00
if words.length != 2 then
print "Expected two numbers"
return
end
2016-12-05 23:44:36 +01:00
print words[0].to_i + words[1].to_i