A C++ program to print the rectangular pattern
Question: Write a C++ program to print the rectangular pattern of given rows and coloumns
Input: 1.The length or size of the row
2.The length or size of the coloumn
sample output:
1. Enter the length of the row : 5
Enter the length of the coloumn: 3
***
***
***
***
***
2. Enter the length of the row : 5
Enter the length of the coloumn: 5
*****
*****
*****
*****
*****
The C++ code:
This is the code for the c++ program which prints the rectangular pattern by using the hashtrick symbol. In this program for loop is used to print the repititive hashtrick symbols. Run the below program and have a look at the output once.
Comments
Post a Comment