using System;
public class Program
{
public static void Main()
int[] a=new int[]{2, 4, 3, 4, 6, 7, 1 };
int target=7;
int i=0;
while(i<=a.Length)
int A=a[i];
int B=a[i+1];
if(A+B==target)
Console.WriteLine("the pair of numbers{0} {1}",A,B);
i++;
}
else
Console.WriteLine(" the value is not equal to target");
Console.ReadLine();