C++ Inheritance sum of the series 1 +11 + 111 + 1111 + .. n terms

Write a program in C++ to find the sum of the series 1 +11 + 111 + 1111 + .. n terms using the single inheritance.

WAP in C++ to find the sum of the series 1 +11 + 111 + 1111 + .. n terms with the help of multiple inheritances.

Write a program in C++ to show the sum of the series 1 +11 + 111 + 1111 and n terms using the multi level inheritance.