Write a Java program in BlueJ environment to calculate the square root of a number.
Answers
Answered by
6
Hi there!
Well this program will be absolutely hard if you don't use a keyword in it.
So let's begin the program .
import.java.io.*
class root
{
public static void main(String args [])
{
double num = 64;
double squareroot = math.sqrt(num);
System.out.println("The square root of 64 =" + squareroot);
}
}
➡Hope it helps dear!
Well this program will be absolutely hard if you don't use a keyword in it.
So let's begin the program .
import.java.io.*
class root
{
public static void main(String args [])
{
double num = 64;
double squareroot = math.sqrt(num);
System.out.println("The square root of 64 =" + squareroot);
}
}
➡Hope it helps dear!
Similar questions
Geography,
8 months ago
English,
8 months ago
Science,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago