#include<stdio.h>
#include<math.h>
int main()
{
int i,n,power;
/输入提示/
printf(“请输入n:”);
scanf("%d",&n);
for(i=0;i<=n;i++)
{
power=pow(2,i);
printf(“pow(2,%d)=%d\n”,i,power);
}
return 0;
}
标签:power,int,pow,乘方,printf,include,输入
来源: https://blog.csdn.net/qq_56880632/article/details/115748236