9138c0cfa278a4b0a3021f98815ccece5bb463a9
[nit.git] / examples / rosettacode / ab.nit
1 #!/usr/bin/env nit
2 #
3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
5
6 # Task: A+B
7 # SEE: <http://rosettacode.org/wiki/A%2BB>
8 #
9 # Generic non-robust version.
10 module ab
11
12 var words = gets.split(" ")
13 print words[0].to_i + words[1].to_i