-
-
Save mcsuth/6708219 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 "would you lke to start a contact list?" | |
| response = gets.chomp | |
| hash = {} | |
| while response == "y" | |
| puts "give me name" | |
| name = gets.chomp | |
| puts "number" | |
| number = gets.chomp | |
| hash[name] = number | |
| puts "continue? y/n" | |
| response = gets.chomp | |
| while response != "y" && response != "n" | |
| puts "enter y/n" | |
| response = gets.chomp | |
| end | |
| end | |
| print hash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment