text: Area of triangle formed by the axes of co | C ++ program area of triangle formed by the axes of co - ordinates and a given straight line ; Function to find area ; Driver code
code: #include <bits/stdc++.h> NEW_LINE using namespace std ; double area ( double a , double b , double c ) { double d = fabs ( ( c * c ) / ( 2 * a * b ) ) ; return d ; } int main ( ) { double a = -2 , b = 4 , c = 3 ; cout << area ( a , b , c ) ; return 0 ; }