Program to print hollow star pattern

Write a C++ program to print the hollow right triangle star pattern?

Write a C++ program to print the hollow right triangle star pattern series using while loop in programming. How to print the hollow right triangle star pattern series of n rows using while loop in C++ programming. Logic to print the hollow right triangle star pattern series in C++.

The Program to print hollow star pattern

Output

C++ Program to print hollow right triangle star pattern

Program to print hollow star pattern

Start with the flowchart of the Program to print a hollow star pattern.

Flowchart of Program to print hollow star pattern in C++

Now, let’s see the Declarations Flow Table.

Variable name Declaration initialization Use(line number)
i 5 8 9|12|24
j 5 11|7 12|15|18|21
rows 5 7 9|12|18

Output

The Program to print hollow star pattern

Add a Comment