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

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

sum of the series in C++

Output

sum of the series in C++

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.