Hi, I'd like to know how to draw a rectangle using the following:
Prompt the user to enter the character to use for drawing the rectangle and promt the user to enter the number of columns and the number of rows for the rectangle.
Furthermore, the max for the rectangle has to be up to 22 rows by up to 79 columns. Ifthe user enters a bigger value cout << "Invalid input" << endl;
I already have a little something
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
int main(void){
int col, rows; char char1;
cout << "Enter the character to be used for drawing the rectangle: " << endl;
cin >> char1;
cout << "Enter the number of columns (up to 79): " << endl;
cin >> col;
cout << "Enter the number of rows (up to 22): " << endl;
cin >> rows;
//Here is when you help me drawing the rectangle :)
return 0;
}