C language | blog work 40

C language | blog jobs
| this course this work belongs to the C language programming ||
the operational requirements where https://edu.cnblogs.com/campus/zswxy/SE2019-1/homework/9773
my goal in the course of We understand and are familiar with using a for loop of
the job that helped me in achieving the objectives of non-specific
reference books
1.1 title
7-1 before seeking entry sequence and N (15 points) one-N
this question requires the preparation of program that calculates the sequence 1 + 1/2 + 1/3 + ... and the first N.

Input format:
input line in a given positive integer N.

Output format:
output section and the value S in accordance with the "sum = S" format in a row, six decimal place. Title ensure that the calculation result does not exceed the double precision.

The subject did little long, I feel so hard, but find it difficult to read the book is not a QQ browser screenshot 20191017221709.png
1.1.2 Code Screenshot
1.1.3 build test data

Guess you like

Origin www.cnblogs.com/qwertyuiopp/p/11695556.html