Skip to content

Instantly share code, notes, and snippets.

@chiapei13
Forked from nextacademy-private/deaf_aunty.rb
Last active November 2, 2015 11:09
Show Gist options
  • Select an option

  • Save chiapei13/e5b25b50368d7d7cdc01 to your computer and use it in GitHub Desktop.

Select an option

Save chiapei13/e5b25b50368d7d7cdc01 to your computer and use it in GitHub Desktop.
def deaf_aunty
talk = ""
while talk != nil
puts "Say Something"
talk = gets.chomp
if talk == "polite"
talk = gets.chomp
if talk == ""
talk = gets.chomp
if talk == ""
break
end
end
elsif talk == talk.upcase
puts "BIG"
elsif talk != "polite"
puts "small"
end
end
end
deaf_aunty
@chiapei13
Copy link
Author

if press enter = showing BIG instead of nothing = YOU HAVE TO FIX AT HOME!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment