95-733 Internet Technologies
12
Reading Integers
#to_i returns 0 on strings that are not integers
puts "Enter two integers on two lines and I'll add them"
a = gets.to_i
b = gets.to_i
puts a + b

Interaction
===========
Enter two integers on two lines and I'll add them
2
4
6