← Unit 1 · all exercises
Saved in this browser only

Square root

Return the square root of the number.

double root(double n)

Solution.java
Loading editor…
Results

Examples

  • root(9) → 3
  • root(144) → 12

There are also 3 hidden tests you can't see. Solve the problem, not the examples.