Computer Science, asked by kreetikathakur001, 3 months ago

develop a program in 'c' to find area of triangle using arithmetic operators ​

Answers

Answered by dhanushntalanki
1

Answer:

#include <stdio.h>

#include <math.h>

int main()

{

double a, b, c, s, area;

printf("Enter sides of a triangle\n");

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

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

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

printf("Area of the triangle = %.2lf\n", area);

return 0;

}

Explanation:

I hope this is correct

Similar questions