Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_name = "Renata"
- def greeting # here we say def to define a method and put the name of our method
- puts "Please enter your name:"
- name = gets.chomp
- puts "Hello" + " " + name
- end
- greeting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement