Computer Science, asked by usharanipoojary121, 5 months ago

write the top down design to find are of triangle​

Answers

Answered by ginogaming963
1

Answer:

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);

Similar questions