Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts 'Welcom to the ol\' granny program.'
- puts 'Ask if your grandma has done something, but remember... she is hard of hearing.'
- puts ' '
- puts 'WHO\'S THERE?'
- name = gets.chomp
- puts 'HELLO, ' + name.upcase
- puts 'WHAT DID YOU WANT?'
- question = ' '
- while question != 'BYE'
- question = gets.chomp
- if question != question.upcase
- puts 'SPEAK UP ' + name.upcase + '!'
- elsif question == 'BYE'
- else
- puts "I HAVEN\'T DONE THAT SINCE, #{(rand(60)) + 1920}"
- puts "WHAT ELSE?"
- end
- end
- puts 'BYE ' + name.upcase + '!!'
Add Comment
Please, Sign In to add comment