fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a[5][5] = {5};
  6. for(int i = 0; i < 4; ++i){
  7. for(int j = 0; j < 4; ++j){
  8. cout << a[i][j] << " ";
  9. }
  10. cout << endl;
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
5 0 0 0 
0 0 0 0 
0 0 0 0 
0 0 0 0