using System.Collections.Generic;
static void FindTwoSum(List<int> list, int sum){
for(int j=i+1;j<len;j++){
if(list[i]+list[j] == sum){
Console.WriteLine("{" + list[i] + ", " + list[j] + "}");
public static void Main()
var list = new List<int>() { 3, 1, 5, 7, 5, 9 };