第六节 练习8
程序员文章站
2022-04-04 11:09:11
...
#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cmath>
using namespace std;
#define PI 3.14
int main()
{
int a;
long b; //长短结合
cout << "输入:";
cin >> a;
b = pow(2,a); // ^是 位异或 运算符
cout << b;
return 0;
}
结果:
上一篇: 正面硬钢魅族Note9 红米Note7紧急加售一场
下一篇: 诺基亚最后的悲剧