In this post, we are going to learn how to write a program to print solid rectangle or square star pattern in C++ using for, while and Do-while loop