C++ program of friend function to print rhombus star pattern

Write a C++ program to print rhombus star pattern of Number of rows using friend function.

C++ program to print rhombus star pattern of Number of rows using friend function.

Output

C++ program to print rhombus star pattern of Number of rows using constructor overloading

How to print rhombus or parallelogram star pattern using friend function in C++ programming.
The Logic to print rhombus or parallelogram star pattern series in C++  using friend function.