Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int i,j;
- int arr[6][6];
- int main()
- {
- using namespace std;
- cout << "Enter array" << endl;
- for(i=0;i<=6;i++)
- for(j=0;j<=6;j++)
- cin >> arr[i][j];
- cout << endl << endl << endl;
- for(i=0;i<=6;i++){
- for(j=0;j<=6;j++){
- cout << arr[i][j] << " ";
- }
- cout << endl;
- }
- }
- ввожу
- 0 1 1 0 0 0 1
- 1 0 0 0 0 0 0
- 1 0 0 0 1 0 0
- 0 0 0 0 1 1 0
- 0 0 1 1 0 1 1
- 0 0 0 1 1 0 0
- 1 0 0 0 1 0 0
- выходит
- 0 1 1 0 0 0 1
- 1 0 0 0 0 0 1
- 1 0 0 0 1 0 0
- 0 0 0 0 1 1 0
- 0 0 1 1 0 1 0
- 0 0 0 1 1 0 1
- 1 0 0 0 1 0 0
- КАКИМ ОБРАЗОМ?!
Advertisement
Add Comment
Please, Sign In to add comment