#include <stdio.h>
#include <math.h>

int main()
{
    int a,b,c,s,area;
    printf("enter sides of triangle\n");
    scanf("%d %d %d", &a,&b,&c);
    if(a+b>c && b+c>a && a+c>b)
    {
    printf("sides are %d %d %d\n",a,b,c);
    s=(a+b+c)/2;
    printf("semi perimeter is %d\n",s);
    area=sqrt(s*(s-a)*(s-b)*(s-c));
    printf("the area of triangle is %d",area);
    return 0;
    }
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: