Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- const int n = 4;
- const int m = 4;
- int mas[n][m]{
- {0, 6, 1, 0},
- {1, 0, 0, 1},
- {7, 0, 0, 5},
- {0, 8, 9, 0},
- };
- for (int i = 0; i < n; i++) {
- for (int j = 0; j < m; j++) {
- cout.width(3);
- cout << mas[i][j];
- }
- cout << '\n';
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement