Slope of the line parallel to the line with the given slope | C ++ implementation of the approach ; Function to return the slope of the line which is parallel to the line with the given slope ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; double getSlope ( double m ) { return m ; } int main ( ) { double m = 2 ; cout << getSlope ( m ) ; return 0 ; }