You are on page 1of 1

#include <iostream>

using namespace std;


//Beniel Alonso
//#83020
//Cesc 2200
//FOR LOOP
int main()
{
int rows, columns, i, j;
char ch;
cout << "Enter the number of rows: ";
cin >> rows;
cout << "Enter the number of columns: ";
cin >> columns;
cout << "Enter the symbol: ";
cin >> ch;
for (i = 1; i<= rows; i++)
{
for (j = 1; j <= columns; j++)
cout << ch;
{
cout << endl;
}
}
system("pause");
return 0;
}
/*
Enter the number of rows : 3
Enter the number of columns : 7
Enter the symbol : @
@@@@@@@
@@@@@@@
@@@@@@@
Press any key to continue . . .
*/

You might also like