Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a[100][100], i1, j1, n;
- cin >> n;
- for(int i = 0; i < n; i++)
- for(int j = 0; j < n; j++)
- cin >> a[i][j];
- cin >> i1 >> j1;
- for(int k = 0; k < n; k++)
- {
- if(i1 >= n || j1 >= n)
- break;
- cout << a[i1+k][j1+k] << " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement