109k views
0 votes
The area of a square is stored in a double variable named area. write an expression whose value is length of the diagonal of the square java.

1 Answer

4 votes

Answer:

The correct answer to the following question will be "Math.sqrt(area*2)".

Step-by-step explanation:

  • The Math.sqrt( ) method in JavaScript is used to find the squares root of the given figure provided to the feature as a variable.
  • Syntax Math.sqrt(value) Variables: this function takes a single variable value that represents the amount whose square root is to be determined.
  • The area of the figure is the number of squares needed to cover it entirely, like the tiles on the ground.

Area of the square = side times of the side.

Because each side of the square will be the same, the width of the square will only be one side.

Therefore, it would be the right answer.

User Pana
by
4.7k points