当前位置:网站首页>Chapitre 1: le roi de shehan a mal calculé
Chapitre 1: le roi de shehan a mal calculé
2022-07-03 19:20:00 【Actions 4.】
int main()
{
double t, s, v, p;
int i, n;
printf(" Veuillez saisir le nombre de cellulesn:");
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(" Le nombre total de grains de blé est de:%.0f\n", s);
else printf(" Le nombre total de grains de blé est de:%.3e\n", s);
printf(" Le poids du blé est d'environ:%fTonnes\n", v);
printf(" Environ l'équivalent de la production totale de l'Année mondiale de l'alimentation%.0fX\n", p);
return 0;
}
Résultats:
边栏推荐
- Foundation of ActiveMQ
- Record the errors reported when running fluent in the simulator
- EGO Planner代碼解析bspline_optimizer部分(1)
- Why should the gradient be manually cleared before back propagation in pytorch?
- 【学术相关】顶级论文创新点怎么找?中国高校首次获CVPR最佳学生论文奖有感...
- Zhang Fei hardware 90 day learning notes - personal records on day 4, please see my personal profile / homepage for the complete
- 第一章:喝汽水,阶梯电费计算,阶梯电费计算函数,个人所税,求解平方根不等式,简化求解平方根不等式,求解调和级数不等式,解不等式:d<1+1/2-1/3+1/4+1/5-1/6+..士1/n
- Dart JSON编码器和解码器剖析
- 东数西算拉动千亿产业,敢啃“硬骨头”的存储厂商才更有机会
- Free hand account sharing in September - [cream Nebula]
猜你喜欢
第二章:求长方体数组,指定区间内的完全数,改进指定区间内的完全数
Help change the socket position of PCB part
【光学】基于matlab涡旋光产生【含Matlab源码 1927期】
【水质预测】基于matlab模糊神经网络水质预测【含Matlab源码 1923期】
Day18 - basis of interface testing
Driveseg: dynamic driving scene segmentation data set
Record: writing MySQL commands
[optics] dielectric constant calculation based on MATLAB [including Matlab source code 1926]
OSPF - detailed explanation of stub area and full stub area
Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]. StandardContext
随机推荐
The necessity of lean production and management in sheet metal industry
Pytorch introduction to deep learning practice notes 13- advanced chapter of cyclic neural network - Classification
Ctrip will implement a 3+2 work system in March, with 3 days on duty and 2 days at home every week
How to design a high concurrency system
[free sharing] kotalog diary2022 plan electronic manual ledger
Free year-end report summary template Welfare Collection
UE source code analysis: uccharactermovementcomponent - rootmotion
Record: pymysql is used in pycharm to connect to the database
Compared with 4G, what are the advantages of 5g to meet the technical requirements of industry 4.0
The earliest record
The way to treat feelings
High concurrency Architecture - read write separation
Dynamic planning -- expansion topics
第二章:求a,b的最大公约与最小公倍数经典求解,求a,b的最大公约与最小公倍数常规求解,求n个正整数的的最大公约与最小公倍数
Day_ 18 IO stream system
Record: solve the problem that MySQL is not an internal or external command environment variable
FBI warning: some people use AI to disguise themselves as others for remote interview
Buuctf's different flags and simplerev
Record: writing MySQL commands
A green plug-in that allows you to stay focused, live and work hard