Program to calculate the area of Kite | C ++ implementation of the approach ; Function to return the area of the kite ; convert angle degree to radians ; use above formula ; Driver code
#include <bits/stdc++.h> NEW_LINE #define PI  3.14159 / 180 NEW_LINE using namespace std ; float areaOfKite ( int a , int b , double angle ) { angle = angle * PI ; double area = a * b * sin ( angle ) ; return area ; } int main ( ) { int a = 4 , b = 7 , angle = 78 ; cout << " Area ▁ of ▁ Kite ▁ = ▁ " << areaOfKite ( a , b , angle ) ; return 0 ; }