Multiple inheritances C++ to display the n terms of odd natural number and their sum

By: Prof. Fazal Rehman Shamil

Write a program in C++ to display the n terms of odd natural number and their sum like:
1 3 5 7 … n using multiple inheritances.

 

Prof. Fazal Rehman Shamil