C++ Inheritance program with classes pyramid pattern numbers increased by 1

logic of C++ program to print pyramid pattern of numbersWrite a program in C++ to make such a pattern like a pyramid with numbers increased by 1 by using the classes and object in Object-oriented programming. The pattern is as follows:

 

 

 

Write a program to make such a pattern like a pyramid with numbers increased by 1 by using the single inheritance in C++.

WAP to make such a pattern like a pyramid with numbers increased by 1 by using the multiple inheritances in C++.

Write a C++ program to make a pyramid pattern with numbers increased by 1 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.