class objects C++ program pattern like a pyramid repeat

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 class objects in OOP.

Print pyramid pattern using do while loop c++

 

Add a Comment