当前位置:网站首页>第一章: 舍罕王失算
第一章: 舍罕王失算
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;
}
结果:
边栏推荐
- [optics] vortex generation based on MATLAB [including Matlab source code 1927]
- How to build an efficient information warehouse
- Find the median of two positive arrays
- EGO Planner代码解析bspline_optimizer部分(3)
- Bad mentality leads to different results
- EGO Planner代碼解析bspline_optimizer部分(1)
- 论文阅读 GloDyNE Global Topology Preserving Dynamic Network Embedding
- The most valuable thing
- Scrape crawler framework
- High concurrency architecture cache
猜你喜欢
![[disease identification] machine vision lung cancer detection system based on Matlab GUI [including Matlab source code 1922]](/img/fc/00835b95537cf889588502a3d13bc9.png)
[disease identification] machine vision lung cancer detection system based on Matlab GUI [including Matlab source code 1922]

Analysis of dart JSON encoder and decoder

I study database at station B (4): DQL

我們做了一個智能零售結算平臺

During MySQL installation, the download interface is empty, and the components to be downloaded are not displayed. MySQL installer 8.0.28.0 download interface is empty solution

This Chinese numpy quick look-up table is too easy!
![[proteus simulation] a simple encrypted electronic password lock designed with 24C04 and 1602LCD](/img/51/209e35e0b94a51b3b406a184459475.png)
[proteus simulation] a simple encrypted electronic password lock designed with 24C04 and 1602LCD

We have built an intelligent retail settlement platform

DriveSeg:动态驾驶场景分割数据集

Record: solve the problem that MySQL is not an internal or external command environment variable
随机推荐
I study database at station B (4): DQL
Buuctf's different flags and simplerev
Pecan — @expose()
What does a really excellent CTO look like in my eyes
Ego planner code parsing Bspline_ Optimizer section (1)
Go home early today
[disease identification] machine vision lung cancer detection system based on Matlab GUI [including Matlab source code 1922]
High concurrency Architecture - distributed search engine (ES)
Day18 - basis of interface testing
Free year-end report summary template Welfare Collection
Think of new ways
【学术相关】顶级论文创新点怎么找?中国高校首次获CVPR最佳学生论文奖有感...
Comments on flowable source code (37) asynchronous job processor
EGO Planner代码解析bspline_optimizer部分(2)
Why should the gradient be manually cleared before back propagation in pytorch?
[water quality prediction] water quality prediction based on MATLAB Fuzzy Neural Network [including Matlab source code 1923]
Zhang Fei hardware 90 day learning notes - personal record on day 5. Please see my personal profile / homepage for the complete record
How does if ($variable) work? [repeat] - how exactly does if ($variable) work? [duplicate]
KINGS
Processing of user input parameters in shell script