WHAT'S NEW?

Program to find Square Root and Cube Root of a number

public class SqrtFinder
{
public static void main(java.lang.String args[])
{

int num=27;
double sq=Math.sqrt(num);
double cb=Math.cbrt(num);

System.out.println("Square Root of "+num+" is : "+sq);
System.out.println("Cube Root of "+num+" is : "+cb);
}
}

0 comments:

Post a comment