fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x[2][4] = {{12,0,22,0},
  6. {0,5,0,5}};
  7.  
  8. cout << x[0][0] << " ";
  9. cout << x[0][1] << " ";
  10. cout << x[0][2] << " ";
  11. cout << x[0][3] << endl;
  12.  
  13. cout << x[1][0] << " ";
  14. cout << x[1][1] << " ";
  15. cout << x[1][2] << " ";
  16. cout << x[1][3] << endl;
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5300KB
stdin
Standard input is empty
stdout
12 0 22 0
0 5 0 5