Advertisement
Guest User

Yarik, #39

a guest
Jun 26th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8. {
  9. const int n = 4;
  10. const int m = 4;
  11. int mas[n][m]{
  12. {0, 6, 1, 0},
  13. {1, 0, 0, 1},
  14. {7, 0, 0, 5},
  15. {0, 8, 9, 0},
  16. };
  17.  
  18. for (int i = 0; i < n; i++) {
  19. for (int j = 0; j < m; j++) {
  20. cout.width(3);
  21. cout << mas[i][j];
  22. }
  23. cout << '\n';
  24. }
  25. system("pause");
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement