djelad1

Untitled

Nov 30th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. int i = 0, j = 0, arr[SIZE4][SIZE4]
  2. {
  3. { 9, 2, 3, 1 },
  4. { 2, 9, 6, 3 },
  5. { 3, 6, 9, 2 },
  6. { 4, 3, 2, 9 }
  7. };
  8. bool flag = true;
  9. for (i = 0; i < SIZE4; i++)
  10. {
  11. for (j = 0; j < SIZE4; j++)
  12. {
  13. cout << arr[i][j] << " ";
  14. }
  15. cout << "\n";
  16. }
  17. for (i = 0; i < SIZE4; i++)
  18. {
  19. for (j = 0; j < SIZE4; j++)
  20. {
  21. if (arr[i][j] != arr[j][i])
  22. flag = false;
  23. }
  24. }
  25. cout << (flag ? "Mekupelet" : "INVALID") << endl;
Advertisement
Add Comment
Please, Sign In to add comment