Program to print hollow star pattern

Prof. Fazal Rehman Shamil
Last modified on March 15th, 2020

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

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.