Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int size = 8;
- int[,] arr = new int[size, size];
- for (int k = 0; k < size; k++)
- {
- bool match = true;
- for (int i = 0; i < size && match; i++)
- {
- if (arr[k, i] != arr[i, k])
- match = false;
- }
- if (match)
- Console.WriteLine(k);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement