using System;
public class Program
{
public static void Main()
int[] A=new int[] {5,6,7,8,9,10};
int[] B=new int[] {6,10,14,18,22,26,30};
EqualNumber (A,B);
}
public static void EqualNumber (int[]A,int[]B)
int i=0;
int j=0;
while (i<A.Length && j<B.Length)
if (A[i]==B[j])
Console.WriteLine (A[i]);
i++;
j++;
else
if (A[i]<B[j])