Импорт Java Math
import java.lang.Math.*;
// usage
double radius = 15;
double area = Math.PI * radius * radius;
Marton
import java.lang.Math.*;
// usage
double radius = 15;
double area = Math.PI * radius * radius;
import static java.lang.Math.sqrt;
public class Demo {
public static void main(String[] arg) {
double num = 3.0;
System.out.println("The number is: " + num);
System.out.println("The square root of the above number is: " + sqrt(num));
}
}