Methods, Blocks, & Sorting, parameters & arguments problems


This is my code:

def cubertino(n)
puts 8 ** 3


Reply: Oops, try again. It looks like you didn't print the value of 8 ** 3 to the console

Can anyone see the error?


I have a feeling that will cause ruby to protest and present you with an error message

-:1:in `cubertino': wrong number of arguments (given 0, expected 1) (ArgumentError)
        from -:5:in `<main>'


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