0
Returning values from methods
def calc (a,b) return a*a, b*b, a*b end puts calc(3,2).length why is the output 3?
3 Respostas
+ 3
because the method Returns an Array with the Square of a, the Square of b and the product of a and b ---> 3 different results
+ 1
because if return has multiple values it returns them in an array
0
Thank you!