Find the area of quadrilateral when diagonal and the perpendiculars to it from opposite vertices are given | C ++ program to find the area of quadrilateral ; Function to find the area of quadrilateral ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; float Area ( int d , int h1 , int h2 ) { float area ; area = 0.5 * d * ( h1 + h2 ) ; return area ; } int main ( ) { int d = 6 , h1 = 4 , h2 = 3 ; cout << " Area ▁ of ▁ Quadrilateral ▁ = ▁ " << ( Area ( d , h1 , h2 ) ) ; return 0 ; }