#sample solution
print "Type in a string:"
user_input = gets.chomp.downcase
puts "You entered: #{user_input}"
if user_input.include? "s"
print "A string of your choice."
end
print "Type in a string:"
user_input = gets.chomp.downcase
puts "You entered: #{user_input}"
if user_input.include? "s"
print "A string of your choice."
end
No comments:
Post a Comment