题解 2777: 计算2的幂

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

C语言-计算2的幂

摘要:解题思路:循环结构,n个2相乘注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){    int n,s=1;    scanf("%d",&……

题解 2777: 计算2的幂

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int n;    cin>>n;    int m……

编写题解 2777: 计算2的幂

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<math.h> using namespace std; int main() {     long l……

2777: 计算2的幂

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() {     int n;……

221486416456185456

摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){    int n;    cin>>n;    cout<<(int)pow(……

2的幂 基础模式,中规中矩

摘要:解题思路:pow函数的应用注意事项:注意头文件math.h参考代码:#include<stdio.h>#include<math.h>int main(){    int n,i;    scanf(……

题解 2777: 计算2的幂

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a = 0; int b = 1; int i = 0; scanf("%d\n", &a); for ……

ikun崩溃代码

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double n; scanf("%lf",&n); printf("……