Ruby Program to add two numbers

Program

puts "Enter value of A"
a = gets.chomp
puts "Enter value of B"
b = gets.chomp
c = a.to_i + b.to_i
puts "Sum of #{a} and #{b} is #{c}"

Output

$ ruby add-two-numbers.rb
Enter value of A
87
Enter value of B
16
Sum of 87 and 16 is 103