Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true
- puts 'Type what you would like to say to grandma.'
- request = gets.chomp
- if request == 'BYE BYE BYE'
- break
- else
- if request != 'BYE BYE' && request != 'BYE'
- if request.upcase == request
- puts 'NO, NOT SINCE' + ( 1930 + rand(21) ).to_s + '!'
- else
- puts 'HUH?! SPEAK UP, SONNY!'
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment