Friend function Pyramid pattern of numbers program in C++ 

Pyramid pattern of numbers in C++ Write a program in C++ to make such a pattern like a pyramid with a number which will repeat the number in the same row using friend function.

Friend function Pyramid pattern in C++