@ -0,0 +1,17 @@
public class zhishu{
public double zhishu(double x,double y) {
if (y==0)
return 1;
else if(y==1)
return x;
else if(oushu(y))
return zhishu(x*x,y/2);
else return zhishu(x*x,(y-1)/2)*x
}
private boolean oushu(int n){
if(n%2==0)
return true;
else return false;