Computer Science, asked by agarwalrishabh, 11 months ago

write a java program to find the square root of number between 1 and 10 using for loop method​

Answers

Answered by ayyanattar64
2

Answer:

/*Java program to find out square root of a given number

*/

public class SquareRootDemo

{

public static void main(String[] args)

{

double number = 16;

double squareRoot = Math.sqrt(number);

//Displaying the values

System.out.println("number : "+number);

System.out.println("Square Root : "+squareRoot);

}

}

Similar questions