Guest User

Untitled

a guest
May 25th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. puts 'Welcom to the ol\' granny program.'
  2. puts 'Ask if your grandma has done something, but remember... she is hard of hearing.'
  3. puts ' '
  4. puts 'WHO\'S THERE?'
  5. name = gets.chomp
  6. puts 'HELLO, ' + name.upcase
  7. puts 'WHAT DID YOU WANT?'
  8. question = gets.chomp
  9. while question != 'BYE'
  10. if question != question.upcase
  11. puts 'SPEAK UP ' + name.upcase
  12. else
  13. puts "I HAVEN\'T DONE THAT SINCE, #{(rand(60)) + 1920}"
  14. end
Add Comment
Please, Sign In to add comment