# 99.times do # puts "this will get done 99 times" # end # # # # # count = 0 # while count < 99 # puts "the count is " + count.to_s # count += 1 # end # # obama = "barack obama" set_of_string = ['obama', 'barack obama'] obama_matches = ['obama', 'michelle obama', 'president'] dothis = true while dothis input = gets.chomp if input.downcase.include? "exit" exit elsif obama_matches.include? input.downcase puts "yeah, he's doing a great job. my friend knows him. i'm serious" end puts "You said: " + input end