write a c programe to find the area of triangle
Answers
Answered by
2
Answer:
C program to find area of a triangle
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)
I hope thts ur answer!!
Answered by
5
Answer:
C program to find area of a triangle
- int main() { double a, b, c, s, area;
- int main() { double a, b, c, s, area;printf("Enter sides of a triangle\n"); scanf("%lf%lf%lf", &a, &b, &c);
- 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.
- 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));
- 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);
Explanation:
hope it's helps you ✌️
Similar questions