This is my code:
puts "Enter a number: " a = gets.chomp puts "Enter a second number: " b = gets.chomp if a > b puts "The first number is bigger!" elsif a < b puts "The second number is bigger!" else puts "The two numbers are equal!" end
When a == -1 and b == -2 it returns a is greater than b.
Is there a problem with my code?