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