develop a program in 'c' to find area of triangle using arithmetic operators
Answers
Answered by
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
Computer Science,
2 months ago
English,
2 months ago
Computer Science,
4 months ago
Hindi,
10 months ago
Physics,
10 months ago