当前位置:网站首页>第一章: 舍罕王失算
第一章: 舍罕王失算
2022-07-03 19:19: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;
}
結果:
边栏推荐
- cipher
- 【学术相关】顶级论文创新点怎么找?中国高校首次获CVPR最佳学生论文奖有感...
- Recommend a GIF processing artifact less than 300K - gifsicle (free download)
- Flume learning notes
- FBI警告:有人利用AI换脸冒充他人身份进行远程面试
- The most valuable thing
- [wallpaper] (commercially available) 70 wallpaper HD free
- Why should we do feature normalization / standardization?
- Thinking about festivals
- 第一章:递归求n的阶乘n!
猜你喜欢

A green plug-in that allows you to stay focused, live and work hard

Dart JSON编码器和解码器剖析

Using the visualization results, click to appear the corresponding sentence

【水质预测】基于matlab模糊神经网络水质预测【含Matlab源码 1923期】

【Proteus仿真】用24C04与1602LCD设计的简易加密电子密码锁
![[water quality prediction] water quality prediction based on MATLAB Fuzzy Neural Network [including Matlab source code 1923]](/img/aa/9980acc9839f067202d46faabbf029.png)
[water quality prediction] water quality prediction based on MATLAB Fuzzy Neural Network [including Matlab source code 1923]
![[new year job hopping season] test the technical summary of interviewers' favorite questions (with video tutorials and interview questions)](/img/4e/a51365bb88b1fc29d1c77fcdde5350.jpg)
[new year job hopping season] test the technical summary of interviewers' favorite questions (with video tutorials and interview questions)

OSPF - detailed explanation of stub area and full stub area

Smart wax therapy machine based on STM32 and smart cloud

Valentine's Day - make an exclusive digital collection for your lover
随机推荐
變化是永恒的主題
flask 生成swagger文档
Sentinel source code analysis part II - sentinel dashboard console startup and configuration
Pecan — @expose()
Record: solve the problem that MySQL is not an internal or external command environment variable
math_泰勒公式
Think of new ways
论文阅读 GloDyNE Global Topology Preserving Dynamic Network Embedding
第一章:递归求n的阶乘n!
[wallpaper] (commercially available) 70 wallpaper HD free
How can I avoid "div/0!" Errors in Google Docs spreadsheet- How do I avoid the '#DIV/0!' error in Google docs spreadsheet?
第一章:求n的阶乘n!
[academic related] how to find the innovation of top papers? Chinese universities won the CVPR Best Student Thesis Award for the first time
第一章:求同吗小数和s(d, n)
The way to treat feelings
EGO Planner代碼解析bspline_optimizer部分(1)
FBI warning: some people use AI to disguise themselves as others for remote interview
Valentine's Day - make an exclusive digital collection for your lover
Summary of learning materials and notes of Zhang Fei's actual combat electronics 1-31
[proteus simulation] a simple encrypted electronic password lock designed with 24C04 and 1602LCD