5/19


#1

i have problem in this section, assignament is to call method with argument 8:

def cubertino(n)
  puts n ** 3
end

and whan i call ti with:

cubertion(8)

i get error message:

Oops, try again. Make sure to call cubertino and pass it the number 8 as an argument.

In console on right say:

undefined method `cubertion' for #<Context:0x6609b8>

What is problem here, and can some1 help me?

Thanks in advance.
P.S. And sorry for my bad English :smiley:


#2

you called

cubertion(8)

instead of

cubertino(8)

spelling error


#3

Thank you :smiley: I'll go to sleap now :smiley: enough for tonight :smiley:


#4

What is the solution this exercise please ?


#5

def cubertino(n)
puts n ** 3
end
cubertino(8)


#6

Ive got it to work but I'm not exactly sure why. is the cubertino 8 as the last line of code telling it take n as 8?


#7

I feel like im doing it right but its coming ack as nil... this is what i have

def cubertino(n)
puts n**3
end
cubertino(8)

when i submit the code it the box says nil and says i have it wrong... somebody please help.. this is the type of stuff that really confuses my... im doing exactly what they tell me to and its still coming up wrong

EDIT: you have to put print n**3 on line 2 not puts my rant still applies.

so the correct code is
def cubertino(n)
print n**3
end
cubertino(8)