#include <stdio.h>
int power(int a, int b){
int c = 1;
while (b-- > 0)
c *= a;
return c;
}
int main(void) {
int x,n,y;
x = 3;
n = 3;
y = power(x,n);
printf("%d の %d 乗は %d",x
,n
,y
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgcG93ZXIoaW50IGEsIGludCBiKXsKICAgIGludCBjID0gMTsKICAgIHdoaWxlIChiLS0gPiAwKQogICAgICAgIGMgKj0gYTsKCiAgICByZXR1cm4gYzsKfQoKaW50IG1haW4odm9pZCkgewogICAgaW50IHgsbix5OwogICAgeCA9IDM7CiAgICBuID0gMzsKICAgIHkgPSBwb3dlcih4LG4pOwogICAgcHJpbnRmKCIlZCDjga4gJWQg5LmX44GvICVkIix4LG4seSk7CgoJcmV0dXJuIDA7Cn0K