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

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

Here, we will learn a c++ program code to implement the sum of series of the following pattern upto n terms.

1 + 2 + 3 + 4 + 5 + ……+ n

Program:

Output:

Enter the value of n : 5

Sum of series upto 5 is 15

Leave a Comment

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

Scroll to Top