#include<stdio.h>
void ZS(k)
{
int i = 0;
int n;
printf("n为:");
scanf("%d", &n);
int c = n;
for (i=2; i <= k; i++)
{
if (k == 1)
{
printf("n的k次方为%d", n);
return 0;
}
else
{
c = c * n;
}
}
printf("n的k次方为%d",c);
}
int main()
{
int k;
printf("k为");
scanf("%d", &k);
ZS(k);
return 0;
}