152k views
3 votes
The Java Math class is a collection of static methods, one of which is sqrt(number). It accepts a numeric argument and returns the square root of the argument as a double. What would be the correct way to invoke sqrt to compute the square root of 25

2 Answers

3 votes

Answer:

math.sqrt25()

Step-by-step explanation:

User Fpointbin
by
4.4k points
3 votes

In Java, you would simply type:

Math.sqrt(25);

To print the square root of 25 to the console, you would type:

System.out.println(Math.sqrt(25));

I hope this helps!

User WattsInABox
by
4.4k points