C++ program to find sum of series 1+1/2+1/3…+1/100

C++ program to find sum of series 1+1/2+1/3…+1/100

In this example code, you will learn to create a c++ program to implement the sum of series in the following pattern upto n terms.

1+1/2+1/3…+1/100

Program:

Output:

Enter how many terms : 9

Sum of series upto 9 is 2.82897

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top