C # implementation of simple method to find count of pairs with given sum
using System ; using System . Collections . Generic ; class GFG { public static int [ ] arr = new int [ ] { 1 , 5 , 7 , - 1 , 5 } ;