you can call the method what you want but I'm going to call it expo for now

public int expo(int n, int x){

int z, y;

y=n;
for(z=0: z<x; z++){
y=y*n;
}
return y;
}


is this correct?