题解 | 2的n次方计算
2的n次方计算
https://www.nowcoder.com/practice/35a1e8b18658411388bc1672439de1d9
#include <stdio.h>
#include <math.h>
int main()
{
int a=2,b;
scanf("%d",&b);
int c = (int)pow(a,b);
printf("%d",c);
return 0;
}
2的n次方计算
https://www.nowcoder.com/practice/35a1e8b18658411388bc1672439de1d9
#include <stdio.h>
#include <math.h>
int main()
{
int a=2,b;
scanf("%d",&b);
int c = (int)pow(a,b);
printf("%d",c);
return 0;
}
相关推荐
沉淀小子:可能一个月8-10K的双非普通人才是我们的常态,不是每个人都可以去那些知名的大厂拿高薪资。比较是偷走幸福的小偷,我们只需要跟过去的自己竞争。博主讲的也折射到了我最近谈恋爱也会焦虑的地方,不过女朋友说我们都是普通人,现在已经很好了。