5. Setting up the if branch part 2


#1

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
user_input.downcase!
if user_input.include? "s"
string_to_change.gsub!(/s/, "th")
end


#2

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


#3

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