当前位置:网站首页>第一章: 舍罕王失算
第一章: 舍罕王失算
2022-07-03 19:18:00 【股_四】
int main()
{
double t, s, v, p;
int i, n;
printf(" 请输入格数n:");
scanf("%d", &n);
t = 1;
s = 1;
for (i = 2; i <= n; i++)
{
t = t * 2;
s += t;
}
v = s / 2.4e7;
p = v / 2.48e9;
if (n <= 40) printf(" 总麦粒数为:%.0f\n", s);
else printf(" 总麦粒数为:%.3e\n", s);
printf(" 小麦重量约为:%f吨\n", v);
printf(" 约相当于世界粮食年总产量的%.0f倍\n", p);
return 0;
}
结果:
边栏推荐
- FBI警告:有人利用AI换脸冒充他人身份进行远程面试
- FBI warning: some people use AI to disguise themselves as others for remote interview
- Bad mentality leads to different results
- A green plug-in that allows you to stay focused, live and work hard
- Zhang Fei hardware 90 day learning notes - personal record on day 5. Please see my personal profile / homepage for the complete record
- Summary of learning materials and notes of Zhang Fei's actual combat electronics 1-31
- QT -- qfileinfo file information reading
- [disease identification] machine vision lung cancer detection system based on Matlab GUI [including Matlab source code 1922]
- Pecan — @expose()
- Ctrip will implement a 3+2 work system in March, with 3 days on duty and 2 days at home every week
猜你喜欢

Driveseg: dynamic driving scene segmentation data set
![leetcode:556. Next larger element III [simulation + change as little as possible]](/img/a0/12e5ee5d01d666acb4b75ada2e6fec.png)
leetcode:556. Next larger element III [simulation + change as little as possible]

FBI warning: some people use AI to disguise themselves as others for remote interview

【疾病识别】基于matlab GUI机器视觉肺癌检测系统【含Matlab源码 1922期】

Simulation scheduling problem of SystemVerilog (1)

Php based campus lost and found platform (automatic matching push)

I study database at station B (4): DQL

2022.2.14 Li Kou - daily question - single element in an ordered array

【数学建模】基于matlab船舶三自由度MMG模型【含Matlab源码 1925期】

Record: solve the problem that MySQL is not an internal or external command environment variable
随机推荐
High concurrency architecture cache
Sentinel source code analysis part I sentinel overview
Dart JSON编码器和解码器剖析
Ego planner code parsing Bspline_ Optimizer section (1)
The more you talk, the more your stupidity will be exposed.
High concurrency Architecture - separate databases and tables
Record: writing MySQL commands
DriveSeg:动态驾驶场景分割数据集
We have built an intelligent retail settlement platform
[leetcode] [SQL] notes
Day18 - basis of interface testing
Today I am filled with emotion
Merge K ascending linked lists
我們做了一個智能零售結算平臺
Flutter网络和数据存储框架搭建 -b1
Integrated easy to pay secondary domain name distribution system
Sustainable service business models
Pecan — @expose()
Free year-end report summary template Welfare Collection
Php based campus lost and found platform (automatic matching push)