Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (text=gets.chomp)!='BYE'
- if text == ""
- puts "DID YOU SAY SOMETHING?"
- elsif text == text.upcase then
- puts "NO, NOT SINCE 19#{rand(21)+30}"
- elsif text == text.downcase || text == text.capitalize
- puts "SPEAK UP, I CAN'T HEAR YOU"
- else
- puts "STOP MUMBLING AND SPEAK UP!"
- end
- end
Add Comment
Please, Sign In to add comment