Program to calculate the area of Kite | C ++ implementation of the approach ; Function to return the area of kite ; use above formula ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; float areaOfKite ( int d1 , int d2 ) { float area = ( d1 * d2 ) / 2 ; return area ; } int main ( ) { int d1 = 4 , d2 = 6 ; cout << " Area ▁ of ▁ Kite ▁ = ▁ " << areaOfKite ( d1 , d2 ) ; return 0 ; }