THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

Total inversion

Threads: Write a program to calculate S = 1 + 1/2 + 1/3 + … + 1/N
Input: A positive integer N.
Output: Results total S. Results rounded to 6 decimal.
For example:

input:
1
output:
1.000000

You are not logged in? Log in to Submit Now!

8 Comments

Add a Comment