当前位置:网站首页>Chapter 1: seek common? Decimal and S (D, n)
Chapter 1: seek common? Decimal and S (D, n)
2022-07-03 19:21:00 【Shares_ four】
int main()
{
int d, j, n;
double t, s;
printf(" please enter an integer d, n:");
scanf("%d, %d", &d, &n);
t = s = 0;
for (j = 1; j < n; j++)
{
t = t / 10 + (double)d / 10;
s += t;
}
printf(" S(%d, %d) = %.8f\n", d, n, s);
return 0;
}
The results verify that :
边栏推荐
- 第二章:求长方体数组,指定区间内的完全数,改进指定区间内的完全数
- 论文阅读 GloDyNE Global Topology Preserving Dynamic Network Embedding
- Scrape crawler framework
- Zhang Fei hardware 90 day learning notes - personal record on day 6. Please see my personal profile / homepage for the complete record
- Zhang Fei hardware 90 day learning notes - personal record on day 5. Please see my personal profile / homepage for the complete record
- This Chinese numpy quick look-up table is too easy!
- Read the paper glodyne global topology preserving dynamic network embedding
- Common text labels
- The earliest record
- SSM integration - joint debugging of front and rear protocols (list function, add function, add function status processing, modify function, delete function)
猜你喜欢
05 -- QT OpenGL draw cube uniform
Verilog HDL continuous assignment statement, process assignment statement, process continuous assignment statement
Free year-end report summary template Welfare Collection
[academic related] how to find the innovation of top papers? Chinese universities won the CVPR Best Student Thesis Award for the first time
Flume learning notes
Pytorch introduction to deep learning practice notes 13- advanced chapter of cyclic neural network - Classification
We have built an intelligent retail settlement platform
These problems should be paid attention to in the production of enterprise promotional videos
Ctrip will implement a 3+2 work system in March, with 3 days on duty and 2 days at home every week
Record: pymysql is used in pycharm to connect to the database
随机推荐
Detailed explanation of shuttle unity interworking principle
Ctrip will implement a 3+2 work system in March, with 3 days on duty and 2 days at home every week
High concurrency Architecture - separate databases and tables
The more you talk, the more your stupidity will be exposed.
第一章:求所有阶乘和数,大奖赛现场统分程序设计,三位阶乘和数,图形点扫描,递归求n的阶乘n!,求n的阶乘n!,舍罕王失算
Scrape crawler framework
Dart JSON编码器和解码器剖析
论文阅读 GloDyNE Global Topology Preserving Dynamic Network Embedding
Zhang Fei hardware 90 day learning notes - personal record of day 3, please see my personal profile / homepage for the complete
第一章: 舍罕王失算
Sentinel source code analysis part II - sentinel dashboard console startup and configuration
SSM integration - joint debugging of front and rear protocols (list function, add function, add function status processing, modify function, delete function)
How to design a high concurrency system
Common text labels
Web Security (VIII) what is CSRF attack? Why can token prevent csdf attacks?
Pytorch introduction to deep learning practice notes 13- advanced chapter of cyclic neural network - Classification
Recommend a GIF processing artifact less than 300K - gifsicle (free download)
Zhang Fei hardware 90 day learning notes - personal records on day 4, please see my personal profile / homepage for the complete
Succession of flutter
第一章:拓广同码小数和s(d, n)