Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts "Enter Your Name: "
- myname = gets.chomp()
- puts "Enter Your Age: "
- myage = gets.chomp()
- puts ("Hello " + myname + ", you are " + myage)
- Matt
- 15
- Enter Your Name:
- Enter Your Age:
- Hello Matt, you are 15
- ruby -v
- ruby 2.6.1p33 (2019-01-30 revision 66950) [x64-mingw32]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement