Created
December 13, 2013 03:15
-
-
Save fenixbrassi/7939323 to your computer and use it in GitHub Desktop.
firstprogram.rb
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
puts("Enter your name:") | |
name = gets | |
puts("Enter your age:") | |
age = gets | |
puts("Enter your address:") | |
address = gets | |
puts name + age + address | |
-------------------------------------------------- | |
The result in the console is: | |
Enter your name: | |
Ernesto Ponce | |
Enter your age: | |
31 | |
Enter your address: | |
Pirul 872 | |
Ernesto Ponce | |
31 | |
Pirul 872 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment