Ruby Function return value

Function return value

# function definition the returns a product
def mult(a,b)
  product = a * b
  return product
end

def mult2(a,b)
   a * b
end

# print the result
x = mult(2,3)
puts x

# do it again
puts mult(2,3)

# no need for a return statement
# returns the value of the last expression
puts mult2(3,3)