C++ Program to find the sum of the series using constructor destructor

Write a program in C++ to find the sum of the series using constructor destructor.

sum of the series c++