rectangle pattern in c 2b 2b

Solutions on MaxInterview for rectangle pattern in c 2b 2b by the best coders in the world

showing results for - "rectangle pattern in c 2b 2b"
Reef
02 Nov 2019
1#include <iostream>
2using namespace std;
3int main()
4{
5    int col, row;
6    int i,j;
7
8    cout<< "Enter number of rows and columns: ";
9    cin >> row >> col;
10
11    for (i=1; i <=row; i++){
12        for (j=1; j<=col; j++){
13            cout << "*";
14        }
15        cout << "\n";
16    }
17
18
19    return 0;
20}