Question Question What I have so far: (HAS TO BE DONE WITH WHILE LOOPS) #include #include using namespace std; int main(){ int rows; int cols; char c1; char c2; cout <> rows; cout << rows << endl; cout <> cols; cout << cols << endl; cout <> c1; cout << c1 << endl; cout <> c2; cout << c2 << endl; return 0; }#include #include using namespace std; int main(){ int rows; int cols; char c1; char c2; cout <> rows; cout << rows << endl; cout <> cols; cout << cols << endl; cout <> c1; cout << c1 << endl; cout <> c2; cout << c2 << endl; return 0; }
Question
What I have so far:(HAS TO BE DONE WITH WHILE
LOOPS)
#include <iostream>
#include <string>
using namespace std;
int main(){
int rows;
int cols;
char c1;
char c2;
cout << “Enter the number of rows (max 99): “;
cin >> rows;
cout << rows << endl;
cout << “Enter the number of cols (max 99): “;
cin >> cols;
cout << cols << endl;
cout << “Enter an interior character: “;
cin >> c1;
cout << c1 << endl;
cout << “Enter an exterior character: “;
cin >> c2;
cout << c2 << endl;
return 0;
}