Simple Function in Ruby

A simple function in Ruby

Source code :

def printmyname(name)
   puts "Hello #{name} !"  
end

printmyname("Aro") 

Output :

Hello Aro !

Output :


                

Comments :