Cube Root Codes For Blue J Java
Frame User can design by his own Ideas
This one has been  done for printing purpose only.
Logic Can be used in NetBeans and Intelli-J .
-DM instagram @the_prodigal_boy For More Further enquiries .






import java.util.*;
class cuberoot
{
    public static void main(String args[])
    {
        Scanner sc = new Scanner(System.in);
        System.out.println("Enter the Number");
        double n=sc.nextDouble();
        double r=0;
        for(float i=1;i<=99999;i++)
        {
            r=r+((1/((2*i)-1))*(Math.pow(((n-1)/(n+1)),((2*i)-1))));
        }       
        System.out.println(Math.pow(1.94773404,r));
        
    }
}
        
        

Comments

Popular Posts