|
|
发表于 2021-9-29 16:16:40
|
显示全部楼层
0.long long int
1.char
2.是
3.8
4._Bool
5.EF
6.int
0.
#include <stdio.h>
#include<math.h>
int main()
{
int v = pow(1,2)+pow(2,3)+pow(3,4)+pow(4,5)+pow(5,6);
printf("值为%d",v);
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);
sum=sum+temp;
}
weight = sum / 25000;
printf("舍罕王应给予大一二%d粒麦子!",sum);
printf("如果每25000粒麦子为1kg,那么应给%dkg麦子!",weight);
return 0;
} |
|