-
-
Save rwpr/cc964d4e3a361c216a71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# original count/status | |
ctr = 0 | |
hello = gets.chomp | |
# print out the raw | |
puts hello.inspect | |
# ctr += 1 if hello == "" | |
# print out what's ctr (iaw status) | |
#puts ctr | |
until (hello == "I love ya, aunty, but I've got to go.") | |
if hello == "" | |
ctr += 1 | |
break if ctr >= 2 | |
elsif (hello == hello.downcase) | |
puts "HUH?! SPEAK UP,SANDRA!" | |
ctr = 0 if ctr == 1 | |
else | |
puts "NO,WE CAN'T DO THAT!" | |
ctr = 0 if ctr == 1 | |
end | |
hello = gets.chomp #get another input besides the very initial one | |
puts hello.inspect | |
puts ctr | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment