Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- main(){
- cout<<"start"<<endl;
- int A[6][8];
- for(int i=0; i<6;i++){
- for(int j=0; j<8; j++){
- cin>>A[i][j];
- }
- }
- bool B[6][8];
- for(int i=0; i<6; i++){
- for(int j=0; j<8; j++){
- if(A[i][j]==A[j][i]){
- B[i][j]= true;
- cout<<B[i][j]<<' ';
- }
- else{
- B[i][j]= false;
- cout<<B[i][j]<<' ';
- }
- }
- }
- for(int i=0; i<6; i++){
- for(int j=0; j<8; j++){
- cout<<B[i][j]<<' ';
- }
- cout<<endl;
- }
- cout<<"end"<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement