Skip to content

Instantly share code, notes, and snippets.

@lenafong
Forked from nextacademy-private/deaf_aunty.rb
Last active February 29, 2016 07:44
Show Gist options
  • Select an option

  • Save lenafong/e31fa7a9a91abfadfaa9 to your computer and use it in GitHub Desktop.

Select an option

Save lenafong/e31fa7a9a91abfadfaa9 to your computer and use it in GitHub Desktop.
def deaf_aunty
start = gets.chomp
count=0
until start == "I love ya, aunty, but I've got to go!" do
if start != start.upcase
puts "HUH?!SPEAK UP, SANDRA!"
else
puts "WE CAN'T DO THAT!"
end
start=gets.chomp
end
until count==2 do
start=gets.chomp
if start==""
count+=1
else
puts "Go away!"
count=0
end
end
end
deaf_aunty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment