Screen freezes and gets stuck


Returning the Final String—Er, “Thtring”

no error … but screen just freezes and nothing happens

print "input please: "
user_input = gets.chomp
if user_input.include? "s"
  user_input.gsub!(/s/, "th")
  puts "string not includes s"

puts "your string is #{user_input}"

Always get stock on ruby lessons

chomp prompts you for input, you have to type something into the prompt

Did you do this? Please show screenshot


i am not able to type anything… please have a look what happens to run button after i press it


and after 5 min i get this output own its own


quickly type some input and press enter to submit your word


that is the problem… system hangs up and i am not able to type in


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