write the syntax for find the square root of number n
Answers
Answered by
2
Explanation:
For Java you have to add import java.lang.math; package first.
Then you can use Math.sqrt(n) to find the square.
Or you can just multiply n*n. This would be much easier.
Answered by
0
Answer:
// C program for the above approach
#include <math.h>
#include <stdio.h>
// Function to find the square-root of N
double findSQRT(double N)
{
return sqrt(N);
}
// Driver Code
int main()
{
// Given number
int N = 12;
// Function call
printf("%f ", findSQRT(N));
return 0;
Similar questions