text: Slope of perpendicular to line | C # Program to find Slope of perpendicular to line ; Function to find the Slope of other line ; Driver Code
code: using System ; class GFG { static double findPCSlope ( double m ) { return - 1.0 / m ; } public static void Main ( ) { double m = 2.0 ; Console . Write ( findPCSlope ( m ) ) ; } }