Program to print solid and hollow rectangle star pattern | faceprep

Program to print solid and hollow rectangle star pattern | faceprep

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.



Program to print solid and hollow rectangle star pattern


Solid rectangular star pattern:


Number of rows: 3

Number of columns: 5


* * * * *n* * * * *n* * * * *n


Program to print solid rectangular star pattern

@@coding::1@@


Program to print solid and hollow rectangle star patternHollow rectangular star pattern:

Number of rows: 3

Number of columns: 5


*  *  *  *  *n*           *n*  *  *  *  *n


Program to print hollow rectangle star pattern

@@coding::2@@


solid-hollow-rectangle




Recommended Programs








Program to print solid and hollow rectangle star pattern