当前位置:网站首页>第一章:求同吗小数和s(d, n)
第一章:求同吗小数和s(d, n)
2022-07-03 19:16:00 【股_四】
int main()
{
int d, j, n;
double t, s;
printf(" 请输入整数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;
}
结果验证:
边栏推荐
- [water quality prediction] water quality prediction based on MATLAB Fuzzy Neural Network [including Matlab source code 1923]
- math_泰勒公式
- cipher
- [leetcode weekly race] game 300 - 6110 Number of incremental paths in the grid graph - difficult
- QT -- qfileinfo file information reading
- Dynamic planning -- expansion topics
- 我眼中真正优秀的CTO长啥样
- 【水质预测】基于matlab模糊神经网络水质预测【含Matlab源码 1923期】
- Record: install MySQL on ubuntu18.04
- High concurrency Architecture - read write separation
猜你喜欢

Counting from the East and counting from the West will stimulate 100 billion industries. Only storage manufacturers who dare to bite the "hard bone" will have more opportunities

The earliest record

01. Preparation for automated office (free guidance, only three steps)

The installation path cannot be selected when installing MySQL 8.0.23

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

Summary of composition materials for 2020 high-frequency examination center of educational resources

Flutter network and data storage framework construction-b1

Help change the socket position of PCB part

Pytorch introduction to deep learning practice notes 13- advanced chapter of cyclic neural network - Classification

Flutter网络和数据存储框架搭建 -b1
随机推荐
【Proteus仿真】用24C04与1602LCD设计的简易加密电子密码锁
Using the visualization results, click to appear the corresponding sentence
Analyse du Code du planificateur ego bspline Section Optimizer (1)
Why should we do feature normalization / standardization?
【光学】基于matlab介电常数计算【含Matlab源码 1926期】
Foundation of ActiveMQ
SSM integration - joint debugging of front and rear protocols (list function, add function, add function status processing, modify function, delete function)
Summary of composition materials for 2020 high-frequency examination center of educational resources
BUUCTF
A green plug-in that allows you to stay focused, live and work hard
Comments on flowable source code (37) asynchronous job processor
Sqlalchemy - subquery in a where clause - Sqlalchemy - subquery in a where clause
“google is not defined” when using Google Maps V3 in Firefox remotely
ActiveMQ的基础
Free sharing | linefriends hand account inner page | horizontal grid | not for sale
Understanding of database architecture
Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]. StandardContext
User identity used by startup script and login script in group policy
Help change the socket position of PCB part
Buuctf's different flags and simplerev