driver code to check the above function
public static void Main ( string [ ] args ) { float x1 = 4 , y1 = 2 ; float x2 = 2 , y2 = 5 ; Console . Write ( " Slope ▁ is : ▁ " + slope ( x1 , y1 , x2 , y2 ) ) ; } }