➽ Program:-

#include<stdio.h>

#include<math.h>

int main()

{

    int s, a, b, c, area;

    printf("Enter the sides of triangle(a,b,c):  ");

    scanf("%d %d %d", &a, &b, &c);

    s = (a + b + c) / 2;

    area = sqrt(s * (s - a) * (s - b) * (s - c));

    printf("Area of a triangle is %d ", area);

}

➽ Output:-

Enter the sides of triangle(a,b,c): 18
16
14
Area of a triangle is 107