write the top down design to find are of triangle
Answers
Answered by
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