Task 2 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 — square

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

Fill in the body of square so that it returns n multiplied by itself.

The method must return the value, not print it — main is the one that prints. For square(5) the program prints 25.

Your solution