def cube(num) num * num * num end
puts cube(3)
27
def cube(num) num * num * num 5 end
puts cube(3)
5
def cube(num) return num * num * num 5 end
puts cube(3)
27
def cube(num) return num * num * num, 70 5 end
puts cube(3)
27 70 puts cube(3)[1]
70
Recommended Posts