问题
填空题
#include<stdio.h>
main()
int i,n;
double x,mypow;
scanf(“%lf%d",&x,&n);
mypow:1;
for(i=1;i<=n;i++)
mypow*=x:
printf("%.2f\n",mypow);
程序运行时输入2,3<回车>,则程序运行结果是:______
答案
参考答案:8.00
解析: 关键是循环语句,计算2的3次方。