Skip to content

Instantly share code, notes, and snippets.

@BT878
Forked from nextacademy-private/deaf_aunty.rb
Created February 29, 2016 07:35
Show Gist options
  • Select an option

  • Save BT878/bf4b26f08aff4d258bb7 to your computer and use it in GitHub Desktop.

Select an option

Save BT878/bf4b26f08aff4d258bb7 to your computer and use it in GitHub Desktop.
puts"Hey boy, hows it going?"
reply1 = gets.chomp
counter = 0
while counter <= 1
if reply1 == ""
p reply1
p counter
counter += 1
reply1 = gets.chomp
elsif reply1 == reply1.upcase
puts "NO, WE CAN'T DO THAT!"
reply1 = gets.chomp
else
puts "HUH?! SPEAK UP, SANDRA!"
reply1 = gets.chomp
end
end
puts "okay boy, see ya later"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment