Ruby Program to subtract 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 "Difference of #{a} and #{b} is #{c}"

Output 1

Enter value of A
10
Enter value of B
8
Difference of 10 and 8 is 2

Output 2

Enter value of A
9
Enter value of B
18
Difference of 9 and 18 is -9