C++ OOP program  to print pyramid of a number

C++ OOP program  to print pyramid of a number.