5. Setting up the if branch part 2


Not sure where I'm going wrong here, it all seems quite simple, but I'm told to make sure I'm using .sub

print "How are you today?"
user_input = gets.chomp
if user_input.include? "s"
string_to_change.gsub!(/s/, "th")


string_to_change is the example they give.
You should replace it with your own variable (user_input)


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