using System; public class Test { public static void Main() { int[] x = { 2, 5, 32, 46, 92, 105, 210, 315 }; int[] y = { 1, 3, 9, 16, 32, 41, 57, 95 }; int[] z = { 4, 7, 9, 11, 13, 27, 32, 95 }; int p = 0, q = 0, r = 0; while (!((x[p] == y[q]) & (y[q] == z[r]))) { if (x[p] < y[q]) p = p + 1; else if (y[q] < z[r]) q = q + 1; else if (z[r] < x[p]) r = r + 1; }; Console.WriteLine(x[p]); Console.ReadKey(); } }