Driver code
public static void Main ( String [ ] args ) { pair [ ] arr = { new pair ( 1 , 5 ) , new pair ( 2 , 0 ) , new pair ( 3 , 0 ) , new pair ( 4 , 0 ) , new pair ( 5 , 5 ) , new pair ( 6 , 5 ) } ; int n = arr . Length ; Console . Write ( " { 0 } STRNEWLINE " , findRoot ( arr , n ) ) ; } }