Math Function using Java in NetBeans
public class Practical_35 {
public static void main(String args[]){
int a=10,b=36;
System.out.println("Maximum among both:"+Math.max(a,b));
System.out.println("Square root of B:"+Math.sqrt(b));
System.out.println("Power of A and B:"+Math.pow(a,b));
}
}
public static void main(String args[]){
int a=10,b=36;
System.out.println("Maximum among both:"+Math.max(a,b));
System.out.println("Square root of B:"+Math.sqrt(b));
System.out.println("Power of A and B:"+Math.pow(a,b));
}
}