Program to calculate the area of Kite | C # implementation of the approach ; Function to return the area of kite ; Use above formula ; Driver code
using System ; class GFG { static float areaOfKite ( int d1 , int d2 ) { float area = ( d1 * d2 ) / 2 ; return area ; } public static void Main ( ) { int d1 = 4 , d2 = 6 ; Console . WriteLine ( " Area ▁ of ▁ Kite ▁ = ▁ " + areaOfKite ( d1 , d2 ) ) ; } }