A Java program to find the square root of a number
Answers
Answered by
0
hey dear this is ur ans...
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);
}
}
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