Computer Science, asked by BrainlyPromoter, 1 year ago

Write a Java program in BlueJ environment to calculate the square root of a number.

Answers

Answered by EpicAnswerer
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!
Similar questions