public class test {
public static void main(String[] args){
System.out.println(quickexpo(3, 2));
}
static public int quickexpo(int x, int y){
if (y == 1)
return x;
if (y % 2 == 0)
return quickexpo(x*x, y/2);
else
return (x * quickexpo(x*x, y/2));
}
}
bon c moche mais de toute facon ca sert a rien ...
contente Noreil ?