-
-
Save ecloke/aafcb1fcc4b3f1e6019e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| puts 'Hi, Sandra, how can i help u?' | |
| counter = 0 | |
| while counter < 3 | |
| response = gets.chomp | |
| if response == ' ' | |
| counter += 1 | |
| elsif response == 'I LOVE YOU AUNTY, BUT I GTG' | |
| puts 'u may leave' | |
| break | |
| elsif response != response.upcase | |
| puts 'huh i cant hear u' | |
| else | |
| puts 'NO WE CANT DO THAT' | |
| end | |
| if counter == 2 | |
| puts 'you may go' | |
| end | |
| end | |
| puts 'see you soon!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment