Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. main(){
  4.     cout<<"start"<<endl;
  5.     int A[6][8];
  6.     for(int i=0; i<6;i++){
  7.         for(int j=0; j<8; j++){
  8.             cin>>A[i][j];
  9.         }
  10.     }
  11.     bool B[6][8];
  12.     for(int i=0; i<6; i++){
  13.         for(int j=0; j<8; j++){
  14.             if(A[i][j]==A[j][i]){
  15.                 B[i][j]= true;
  16.                 cout<<B[i][j]<<' ';
  17.             }
  18.             else{
  19.                 B[i][j]= false;
  20.                 cout<<B[i][j]<<' ';
  21.             }
  22.         }
  23.     }
  24.     for(int i=0; i<6; i++){
  25.         for(int j=0; j<8; j++){
  26.             cout<<B[i][j]<<' ';
  27.         }
  28.         cout<<endl;
  29.     }
  30.     cout<<"end"<<endl;
  31.    
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement