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

By: Prof. Fazal Rehman Shamil

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.

 

Prof. Fazal Rehman Shamil