a guest Feb 13th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- 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 # here’s the code inside our method
- end # and here we end or close our method
RAW Paste Data