当前位置:网站首页>Chapter 1: King Shehan miscalculated
Chapter 1: King Shehan miscalculated
2022-07-03 19:20:00 【Shares_ four】
int main()
{
double t, s, v, p;
int i, n;
printf(" Please enter the number of cells 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(" The total number of grains is :%.0f\n", s);
else printf(" The total number of grains is :%.3e\n", s);
printf(" The weight of wheat is about :%f Tons of \n", v);
printf(" It is about... Of the world's total annual grain output %.0f times \n", p);
return 0;
}
result :
边栏推荐
- Summary of learning materials and notes of Zhang Fei's actual combat electronics 1-31
- Free year-end report summary template Welfare Collection
- 第一章:求n的阶乘n!
- 01 - QT OpenGL display OpenGL window
- Differential constrained SPFA
- Sqlalchemy - subquery in a where clause - Sqlalchemy - subquery in a where clause
- This Chinese numpy quick look-up table is too easy!
- DriveSeg:动态驾驶场景分割数据集
- Verilog HDL continuous assignment statement, process assignment statement, process continuous assignment statement
- How to design a high concurrency system
猜你喜欢

第一章:喝汽水,阶梯电费计算,阶梯电费计算函数,个人所税,求解平方根不等式,简化求解平方根不等式,求解调和级数不等式,解不等式:d<1+1/2-1/3+1/4+1/5-1/6+..士1/n

东数西算拉动千亿产业,敢啃“硬骨头”的存储厂商才更有机会

Yolov3 network model building
![[optics] vortex generation based on MATLAB [including Matlab source code 1927]](/img/9b/b7f462e2ecbff0cee35e7de5c80cf7.jpg)
[optics] vortex generation based on MATLAB [including Matlab source code 1927]

记录在模拟器中运行flutter时报的错

Record: solve the problem that MySQL is not an internal or external command environment variable

QT -- qfile file read / write operation
![Free hand account sharing in September - [cream Nebula]](/img/4f/fec31778a56886585e35be87885452.jpg)
Free hand account sharing in September - [cream Nebula]

Thesis study - 7 Very Deep Convolutional Networks for Large-Scale Image Recognition (3/3)

FBI warning: some people use AI to disguise themselves as others for remote interview
随机推荐
Ego planner code parsing Bspline_ Optimizer section (3)
Using the visualization results, click to appear the corresponding sentence
Zhang Fei hardware 90 day learning notes - personal records on day 4, please see my personal profile / homepage for the complete
Verilog HDL continuous assignment statement, process assignment statement, process continuous assignment statement
Find the median of two positive arrays
flask 生成swagger文档
达梦数据库的物理备份和还原简解
Dart JSON编码器和解码器剖析
Sqlalchemy - subquery in a where clause - Sqlalchemy - subquery in a where clause
第一章:拓广同码小数和s(d, n)
Does SQL always report foreign key errors when creating tables?
DriveSeg:动态驾驶场景分割数据集
Php based campus lost and found platform (automatic matching push)
我们做了一个智能零售结算平台
第二章:基于分解的求水仙花数,基于组合的求水仙花数, 兰德尔数,求[x,y]内的守形数,探求n位守形数,递推探索n位逐位整除数
[water quality prediction] water quality prediction based on MATLAB Fuzzy Neural Network [including Matlab source code 1923]
Pecan - route
[optics] vortex generation based on MATLAB [including Matlab source code 1927]
Driveseg: dynamic driving scene segmentation data set
Analyse du Code du planificateur ego bspline Section Optimizer (1)