#include<stdio.h>
#include<math.h>
int main()
{
int i, n;
double power;
scanf("%d", &n);
for(i=0; i<=n; i++){
power=pow(3,i);
printf("pow(3,%d) = %.0f\n",i,power);
}
return 0;
}
标签:main,power,17,int,double,练习,乘方,include
来源: https://www.cnblogs.com/ytmsnzy/p/16587854.html