支持小甲鱼
答案
对答案
做完作业
这个真的不知道怎么下手,我先偷偷看看答案可以吗
感谢小甲鱼老师
答案
666666666666666666666666666666666666666
看答案
很好
1
朕想知道
kanyikandaan
不太会啊{:10_266:}
不错,感谢分享
1111111111111
本帖最后由 我就是要学习 于 2018-8-9 18:15 编辑
#include <stdio.h>
#include<math.h>
int main()
{
int i;
unsigned long long sum = 0;
unsigned long long temp;
unsigned long long weight;
for (i=0;i<64;i++)
{
int temp;
temp=pow(2,i);
sum+=temp;
}
weight=sum/25000;
printf("应该给予%llu粒麦子\n",sum);
printf("应该给予%llu公斤麦子\n",weight);
return 0;
}
#include <stdio.h>
#include <math.h>
int main(int argc, char *argv[])
{
int sun;
int temp;
int weight;
int i;
for (i=0;i<64;i++)
{
temp=pow(2,i);
sun=sun+temp;
}
weight=sun/25000;
printf("舍罕王应该给予达依尔%i粒麦子\n", temp);
return 0;
}
朕想知道
1