Created
September 29, 2015 20:28
-
-
Save clayton-perszyk/090dcebe0764bee2889b to your computer and use it in GitHub Desktop.
ruby bouncer exercise
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 "How old are you?" | |
| age = gets.to_i | |
| if age >= 21 | |
| puts "You can drink" | |
| elsif age >= 18 && age < 21 | |
| puts "You can watch the show, but no drinking!" | |
| else | |
| puts "Go home, kiddo" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment