import math java
import java.lang.Math.*;
// usage
double radius = 15;
double area = Math.PI * radius * radius;
import math java
import java.lang.Math.*;
// usage
double radius = 15;
double area = Math.PI * radius * radius;
how to import math lib in java
import static java.lang.Math.sqrt;
public class Demo {
public static void main(String[] arg) {
double num = 36.0;
System.out.println("The number is: " + num);
System.out.println("The square root of the above number is: " + sqrt(num));
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us