Task 6 of 7 · 0 solved · 7 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

3.3 Methods — cube

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Fill in the body of cube so that it returns n multiplied by itself three times.

For cube(3) the program prints 27. Return the value — do not print it inside the method.

Your solution