The program to print solid and hollow rectangle star patterns is discussed here. Given the number of rows and columns, print the solid and hollow rectangle star patterns.

Number of rows: 3
Number of columns: 5
* * * * *n* * * * *n* * * * *n
@@coding::1@@
Hollow rectangular star pattern:Number of rows: 3
Number of columns: 5
* * * * *n* *n* * * * *n
@@coding::2@@
Recommended Programs