1234567891011121314151617181920212223242526272829
#include <iostream> #include <string> using namespace std; int main() { //Declaration Block int numRows = 0; int numCols = 0; cout << "Enter how many columns you want your table to have: "; cin >> numCols; cout << "Enter how many rows you want your table to have: "; cin >> numRows; for (int i = 0; i < numRows; i++) { for (int j = 0; j < numCols; j++) { cout << " Row " << i + 1 << "\t" << " Column " << j + 1; } cout << endl; } system("pause"); return 0; }
I also need to get it so that it doesn't have a print command start a new line.