<prompt> Kujenga kazi katika C mahesabu eneo la pembe tatu.  <response>: Here is a function written in C that calculates the area of a triangle:cpp Include the math library to use the sqrt functioninclude Define a function that calculates the area of a triangle given the lengths of its three sides: a, b and c.double area_of_triangledouble a, double b, double c Calculate the semi-perimeter of the triangle. double s a b c 2; Calculate the area of the triangle using Herons formula. double area sqrts s - a s - b s - c; return area;This function takes three arguments, representing the lengths of the sides of a triangle, and returns the calculated area of the triangle using Herons formula. The cmath library is included to make use of the sqrt function. 