当前位置:网站首页>第一章: 舍罕王失算
第一章: 舍罕王失算
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;
}
結果:
边栏推荐
- Scrapy爬虫框架
- 交叉编译Opencv带Contrib
- P1891 crazy LCM (Euler function)
- 【光学】基于matlab涡旋光产生【含Matlab源码 1927期】
- 论文阅读 GloDyNE Global Topology Preserving Dynamic Network Embedding
- Pecan — Overview
- The online customer service system developed by PHP is fully open source without encryption, and supports wechat customer service docking
- “google is not defined” when using Google Maps V3 in Firefox remotely
- [new year job hopping season] test the technical summary of interviewers' favorite questions (with video tutorials and interview questions)
- 第一章:求所有阶乘和数,大奖赛现场统分程序设计,三位阶乘和数,图形点扫描,递归求n的阶乘n!,求n的阶乘n!,舍罕王失算
猜你喜欢

The online customer service system developed by PHP is fully open source without encryption, and supports wechat customer service docking

This Chinese numpy quick look-up table is too easy!

Using the visualization results, click to appear the corresponding sentence

第一章:求所有阶乘和数,大奖赛现场统分程序设计,三位阶乘和数,图形点扫描,递归求n的阶乘n!,求n的阶乘n!,舍罕王失算
![[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]

Common text labels

Sentinel source code analysis part II - sentinel dashboard console startup and configuration
![[wallpaper] (commercially available) 70 wallpaper HD free](/img/21/6802da1056a18157b15de85df60cf5.jpg)
[wallpaper] (commercially available) 70 wallpaper HD free

【疾病识别】基于matlab GUI机器视觉肺癌检测系统【含Matlab源码 1922期】

【光学】基于matlab涡旋光产生【含Matlab源码 1927期】
随机推荐
Find the median of two positive arrays
【Proteus仿真】用24C04与1602LCD设计的简易加密电子密码锁
Ego planner code parsing Bspline_ Optimizer section (3)
How does if ($variable) work? [repeat] - how exactly does if ($variable) work? [duplicate]
High concurrency Architecture - separate databases and tables
Zhang Fei hardware 90 day learning notes - personal record on day 6. Please see my personal profile / homepage for the complete record
Free year-end report summary template Welfare Collection
Succession of flutter
Integrated easy to pay secondary domain name distribution system
Think of new ways
Free hand account sharing in September - [cream Nebula]
P1891 crazy LCM (Euler function)
Web Security (VII) specific process of authentication with session cookie scheme
Scrapy爬虫框架
Comments on flowable source code (37) asynchronous job processor
This Chinese numpy quick look-up table is too easy!
FBI warning: some people use AI to disguise themselves as others for remote interview
[optics] dielectric constant calculation based on MATLAB [including Matlab source code 1926]
What does a really excellent CTO look like in my eyes
Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]. StandardContext