I learned that gets creates a new line and asks the user to input something, and gets.chomp does the same thing except that it does not create a ne
gets
gets.chomp
For example:
x = gets y = gets puts x+y
and
x = gets.chomp y = gets.chomp puts x+y
Now run the two examples separately and see the difference.