fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
Success #stdin #stdout 0s 5320KB
stdin
#include <iostream>
using namespace std;

int main() {
    int A[3][5];
    int count = 1;

    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 5; j++) {
            A[i][j] = count;
            count++;
        }
    }

    for (int i = 0; i < 3; i++) {
        for (int j = 0; j < 5; j++) {
            cout << A[i][j] << " ";
        }
        cout << endl;
    }

    return 0;
}
stdout
Standard output is empty