using System.Collections.Generic;
public static void Main()
int[] arr = { 3, 4, 7, 1, 12, 9 };
public static void FindEqualSums(int[] arr)
Dictionary<int, int[]> kvps = new Dictionary<int, int[]>();
for (int i = 0; i < arr.Length; ++i)
for(int j = i + 1; j < arr.Length; ++j)
if (!kvps.ContainsKey(sum))
result += "{" + pair[0].ToString() + "," + pair[1].ToString() + "}{" + arr[i].ToString() + "," + arr[j].ToString() + "}";
Console.WriteLine(result);