|
|
发表于 2020-4-14 12:43:50
|
显示全部楼层
0: long long int
1:字节
2:是
3:8
4:不知道
5:F size of 中间不能空格
6:unsigned int
7:只会按照你的编程去输出
0:#include <stdio.h>
#include <math.h>
int main()
{
int i;
i = pow(1,2)+pow(2,3)+pow(3,4)+pow(4,5)+pow(5,6);
printf("1^2 + 2^3 + 3^4 + 4^5 + 5^6 = %d",i);
return 0;
}
1:#include <stdio.h>
#include <math.h>
int main()
{
long double sum, temp, weight;
int i;
for (i=0;i<64;i++)
{
temp = pow (2,i);
printf("%d\n",temp);
sum += temp;
}
weight = sum / 25000;
printf("éáo±íõó|¸Ã¸øóè′ïòà¶û%ldá£Âó×ó!\n",sum);
printf("èç1ûÿ25000á£Âó×óÎa1kg,ÄÇÃ′ó|¸Ã¸ø%ldkg1«½ïÂó×ó!\n",weight);
return 0;
} |
|