Ruby Ruby Basics Ruby Syntax Method Return Values

Fin Muir
Fin Muir
1,108 Points

Help me please

.

methods.rb
def three(three)
end

def five(five)
end

puts three(3)
puts five(5)

1 Answer

Antonio De Rose
Antonio De Rose
20,840 Points
def three(three) #why is there an argument, question asked you to return number 3
end

def five(five) #why is there an argument, question asked you to return number 5
end

puts three(3) #this line is not necessary
puts five(5) #this line is not necessary