Terminal wont allow to input the name after gets.chomp


#1

i am getting the same issue the terminal is asking me for my first name and will not let me enter it however after about 15 seconds all of the other print statements will just print to screen and it just fails me. i am sure i got it right as i have got the desired result when i copied the code into rubymine

print "What’s your first name? "
first_name = gets.chomp

print "What’s your last name? "
last_name = gets.chomp

print "What’s your city? "
city = gets.chomp

print "What’s your state (use abreviation)? "
state = gets.chomp

Blockquote


Terminal wont allow to input the name after gets.chomp
#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.