C++ Program to display the sum of the series using Multilevel inheritance

Write a program in C++ to display the sum of the series using multilevel inheritances.

Output

Please input the number of terms. 7

the sum of the series is 11111103.

Write a program to find the sum of the following series using Multi-level inheritance.
Different series programs in c++ using the Multi-level inheritance.
All series program in C++ using the Multi-level inheritance.