daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Dec 11th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def greeting # here we say def to define a method and put the name of our method
  2.     puts "Please enter your name:" # here is the code inside our method
  3.     name = gets.chomp
  4.     puts "Hello" + " " + name
  5. end #and here we end or close our method
  6.  
  7. greeting
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top