C++ inheritance 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 by using the single inheritance in C++.

WAP in C++ to display the n terms of odd natural number and their sum like 1 3 5 7 by using the multiple inheritance.

Write a program to display the n terms of odd natural number and their sum with the help of multi-level inheritance 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.