|
|
发表于 2021-9-22 21:01:47
|
显示全部楼层
0.long long int
1.char _Bool
2.是
3.8
4.enum枚举
5.
F
6.unsigned
7.不知道
动动手
0.
#include <stdio.h>
#include <math.h>
int main(){
int res = pow(1,2)+pow(2,3)+pow(3,4)+pow(4,5)+pow(5,6);
printf("结果为%d\n",res);
return 0;
}
1.
#include <stdio.h>
#include <math.h>
int main(){
unsigned long long int sum = 0;
unsigned long long int temp;
unsigned long long int weight;
int i;
for (i = 0;i<64;i++ ){
temp = pow(2,i);
printf("%llu\n",temp);
sum = sum + temp;
}
weight = sum /25000;
printf("应该给予%llu\n",sum);
printf("应该给予%llu吨\n",weight);
return 0;
}
|
|