Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. puts "hello there I need opinion"
  2. puts 'what is your name'
  3.  
  4. name = gets.chomp
  5.  
  6. puts "well hello to you #{name}, do you like amusement parks or shopping better?"
  7. answer =gets.chomp
  8.  
  9. if answer == 'amusement parks'
  10. puts "Wow! that't cool i love amusement parks. Which is your favorite?"
  11. answer_1 = gets.chomp
  12. puts "i've never been to #{answer_1} but it sounds cool"
  13. elseif answer == 'shopping'
  14. puts "That's cool but I only like shopping sometimes."
  15. else
  16. puts "oh I guess that's cool too"
  17. end
  18.  
  19. puts
  20. puts "Ice cream or Apples?"
  21. answer_3 = gets.chomp
  22. puts "I prefer ice cream myself"
  23.  
  24. puts "well see you later #{name}, I gotta go"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement