fork(2) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void print_matrix(const double (&m)[4][5])
  5. {
  6. for(int i = 0; i < 4; ++i)
  7. {
  8. for(int j = 0; j < 5; ++j)
  9. {
  10. cout << m[i][j] << '\t';
  11. }
  12. cout << endl;
  13. }
  14. }
  15.  
  16. int main()
  17. {
  18. double m[4][5] =
  19. {
  20. {2, 3, 4, 5, 6},
  21. {1, 0, 0, 6, 0},
  22. {0, 0, 2, 9, -6},
  23. {9, 8, 7, 6, 5},
  24. };
  25. print_matrix(m);
  26. return 0;
  27. }
  28.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
2	3	4	5	6	
1	0	0	6	0	
0	0	2	9	-6	
9	8	7	6	5