7. Returning the Final String - Er, "Thtring"


#1

print "Can I have your input?"
user_input = gets.chomp.downcase
if user_input.include? "s"
user_input.gsub!(/s/,"th")
puts " Your string is: #{user_input)"
else user_input.include? "s"
end

I have no idea what's wrong with this
If you can help me, then please help me


#2

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