Driver code
public static void Main ( String [ ] args ) { int [ ] x = { - 3 , 5 , 8 } ; int [ ] y = { 8 , 7 , 9 } ; int [ ] v = { 8 , 2 , 10 } ; int n = x . Length ; if ( lineExists ( x , y , v , n ) ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }