write a java program to find the square root of number between 1 and 10 using for loop method
Answers
Answered by
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
Math,
6 months ago
Science,
6 months ago
India Languages,
6 months ago
Math,
11 months ago
Math,
1 year ago