Stuck on "Learning returns" exercise!


#1

What is wrong with my code? Have I missed something?

def add (*n)
    return n * 2
end

output = add (5, 6)
puts output

#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.