#include <stdio.h>
int main()
{
double x,pow =
1.0;
int i,n;
printf("Enter x:");
scanf("%lf",&
x);
printf("Enter n:");
scanf("%d",&
n);
for(i=
1;i<=n;i++
){
pow=pow*
x;
}
printf("pow(%lf%d)=%.2f\n",x,n,pow);
return 0;
}
转载于:https://www.cnblogs.com/liruijia199531/p/3378542.html
相关资源:Python3经典案例100道练习题-学习Python提升必练