当前位置:网站首页>Learn - use do... While loop according to the formula e=1+1/1+ 1/2!+ 1/3!+…+ 1/n! Calculate the value of E (accuracy is 1e-6)
Learn - use do... While loop according to the formula e=1+1/1+ 1/2!+ 1/3!+…+ 1/n! Calculate the value of E (accuracy is 1e-6)
2022-07-24 08:01:00 【Ssaty.】
The first 1 Turn off : use do-while Cycle by formula e=1+1/1!+1/2!+1/3!+…+1/n! Calculation e Value
Our mission : For programming do-while Cycle by formula e=1+1/1!+1/2!+1/3!+…+1/n! Calculation e Value , Until the absolute value of the last term is less than the precision value eps Until , Output e And count the number of accumulated items .
do-while Characteristics of sentences : Execute the loop body unconditionally first , Then judge whether the circulation condition is tenable .
do-while Circulation and while The difference with cycles is that :do-while A loop is to execute the statements in the loop first , Then judge whether the expression is true , If it is true, it continues to loop ; If it is false , Then stop the cycle .
do-while The loop must execute the loop statement at least once .
#include <stdio.h>
int main()
{
/********** Begin **********/
<边栏推荐
- The difference between session and cookie
- HCIP第七天
- Implement a queue with two stacks.
- The growth path of software testing
- Database system - Basic Concepts
- Arduino's super power-saving sleep mode has worked with one 18650 battery for 17 years
- Math。 Round, numeric rounding, underlying code parsing
- MySQL -- subquery scalar subquery
- *Code understanding *numpy basic (plus code) that must be understood
- Amber tutorial A17 learning - concept
猜你喜欢

Avoid pitfalls and stay away from PUA in the workplace. You need to know the common routines and scripts of PUA!

Image feature Harris corner detection

Hegong sky team vision training Day2 - traditional vision, opencv basic operation

Hcip 13th day notes

Summary of study notes (I)

Implement a queue with two stacks.

Case practice - panoramic image mosaic: feature matching method

Anaconda cannot shut down the method of forced shutdown

The vision group of Hegong University Sky team trained Day1 - machine learning, and learned to use the Yolo model

学习笔记总结篇(一)
随机推荐
Markdown basic grammar learning
Hcip day 8 notes
Install librosa using Tsinghua image
Why is knowledge base important? This is the best answer I've ever heard
Binary search common questions
The vision group of Hegong University Sky team trained Day1 - machine learning, and learned to use the Yolo model
Super simple countdown code writing
Stable TTL serial port rate supported by Arduino under different dominant frequencies
Natural language processing Jieba
mysql使用explain分析sql执行计划帮助查找性能瓶颈
Summary of study notes (I)
jmeter中JSON提取器使用
Starting from scratch C language intensive Part 3: Functions
图的认识与存储
Debug No1 summarizes common solutions to bugs
Example of dictionary
*Yolo5 learning * data experiment based on yolo5 face combined with attention model CBAM
Database system - Basic Concepts
Full revolutionary Siamese networks for object tracking translation
Opencv project practice - credit card recognition