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.
LANGUAGE: C++
CHALLENGE:
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.
SOLUTION:
sqrt(sqrt(area)*sqrt(area) + sqrt(area) * sqrt(area))