Ruby - Methods
What will this Ruby code output?
def multiply(x, y) x * y end puts multiply(5, 3)
def multiply(x, y) x * y end puts multiply(5, 3)
multiply takes two arguments and returns their product.multiply(5, 3)15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions