Multilevel inheritance C++ program pattern like a pyramid repeat

By: Prof. Fazal Rehman Shamil

Write a program in C++ to make such a pattern like a pyramid with a number that will repeat the number in the same row using Multilevel inheritance in OOP.

Print pyramid pattern using do while loop c++

 

Prof. Fazal Rehman Shamil