It's not 'sticking', it's waiting for IO.
You have a second call to gets
inside your if b < c
block. Your loop is executing the final time, you are entering a value < c, your if block is entered, and your program is waiting for you to read more input.
Change your inner if block to
if b < c
@bet = b
else
puts "Nice try."
end
and you should be ok.