public class MathPower1 {
public static void main(String[] args) {
double nan = Double.NaN;
double result;
//2^NAN
result = Math.pow(2, nan);
System.out.println(result);
//1245^0
System.out.println(Math.pow(1245, 0));
//5^1
System.out.println(Math.pow(5, 1));
}
}
#Java_Program
#Java_Practice_Program
Subscribe by Email
Follow Updates Articles from This Blog via Email
No Comments