using System.Collections.Generic;
public static void Main()
int[] values = new int[] { 3, 5, 2, -4, 8, 11 };
List<string> resultats = new List<string>();
for (int i = 0; i < values.Length-1; i++)
for (int j = 0; j < values.Length-1; j++)
var addition = values[i] + values[j];
if (addition == expectedSum) {
resultats.Add("[" + values[i] + ", " + values[j] + "]");
for (int i = 0; i < resultats.Count / 2; i++)
Console.WriteLine(resultats[i]);