You are on page 1of 1

/**

* Write a description of class surd here.


*
* @author (your name)
* @version (a version number or a date)
*/
public class surd
{
public void surdradical(int y)
{
int z;
for(z=2; z<=y/2;z++)
{if (y%(Math.pow(z,2))==0)
{
break;
}
else
{
continue;
}
}
System.out.println("Your simplified radical is " + z +""+(int)(y/Math.pow(z,2)));
}
}

You might also like