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
Accountancy,
1 month ago
Science,
1 month ago
English,
1 month ago
Computer Science,
3 months ago
Hindi,
9 months ago
Physics,
9 months ago