当前位置:网站首页>第一章: 舍罕王失算
第一章: 舍罕王失算
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;
}
结果:
边栏推荐
- Zhang Fei hardware 90 day learning notes - personal record on day 6. Please see my personal profile / homepage for the complete record
- This Chinese numpy quick look-up table is too easy!
- math_泰勒公式
- The earliest record
- 利用可视化结果,点击出现对应的句子
- 东数西算拉动千亿产业,敢啃“硬骨头”的存储厂商才更有机会
- Free sharing | linefriends hand account inner page | horizontal grid | not for sale
- 记录在模拟器中运行flutter时报的错
- flask 生成swagger文档
- How does if ($variable) work? [repeat] - how exactly does if ($variable) work? [duplicate]
猜你喜欢
The necessity of lean production and management in sheet metal industry
Yolov3 network model building
Recommend a GIF processing artifact less than 300K - gifsicle (free download)
【数学建模】基于matlab船舶三自由度MMG模型【含Matlab源码 1925期】
Verilog HDL continuous assignment statement, process assignment statement, process continuous assignment statement
BUUCTF
Record: MySQL changes the time zone
Flutter network and data storage framework construction-b1
Valentine's Day - make an exclusive digital collection for your lover
EGO Planner代码解析bspline_optimizer部分(2)
随机推荐
leetcode:11. Container with the most water [double pointer + greed + remove the shortest board]
Web Security (VII) specific process of authentication with session cookie scheme
[wallpaper] (commercially available) 70 wallpaper HD free
Php based campus lost and found platform (automatic matching push)
Hard disk monitoring and analysis tool: smartctl
變化是永恒的主題
The way to treat feelings
HOW TO WRITE A DAILY LAB NOTE?
math_ Taylor formula
Driveseg: dynamic driving scene segmentation data set
Record: MySQL changes the time zone
01. Preparation for automated office (free guidance, only three steps)
我们做了一个智能零售结算平台
Help change the socket position of PCB part
Find the median of two positive arrays
SSM整合-前后台协议联调(列表功能、添加功能、添加功能状态处理、修改功能、删除功能)
These problems should be paid attention to in the production of enterprise promotional videos
[water quality prediction] water quality prediction based on MATLAB Fuzzy Neural Network [including Matlab source code 1923]
为什么要做特征的归一化/标准化?
Flutter network and data storage framework construction-b1