Driver code
public static void Main ( String [ ] args ) { int [ ] arr1 = { 1 , 3 , 11 } ; int n1 = arr1 . Length ; int [ ] arr2 = { 2 , 4 , 8 } ; int n2 = arr2 . Length ; int k = 4 ; kSmallestPair ( arr1 , n1 , arr2 , n2 , k ) ; } }