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],n,i,j,ok=1;
- float m1=0.0,m2=0.0;
- cout<<"n=";cin>>n;
- for (i=0;i<n;i++)
- for (j=0;j<n;j++)
- cin>>a[i][j];
- for (i=0;i<n;i++)
- for (j=0;j<n;j++)
- if (a[i][j]!=a[j][i]&&i!=j)
- ok=0;
- if (ok)
- cout<<"DA";
- else
- cout<<"NU";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement