I have a 3x4 array, and I need the user to input the data and fill it appropiately. I have been working on this for days and I still can't figure it out. Thought it would have been very simple to google it but nothing helpful comes up.
Code:#include <iostream> #include <iomanip> using namespace std; const int numrow = 3; const int numcol = 4; int grades [numrow][numcol]; int main () { for (int i = 0; i <numrow; i++) { for (int j = 0; j < numcol; j++) { cout << "enter grades for row # " << (i + 1)<< ": "; cin >> grades [i][j]; } cout << setw (4) << grades [i][j]; } return 0; }