Computer Science, asked by manaswinisingh90, 3 months ago

write a program to compute and print the area of
the triangle by using Heron's formula.
(with output)
please.


manaswinisingh90: please answer it correctly..with output

Answers

Answered by basanagoudabellikatt
0

Answer:

01

/* C program to find area of trianlge using Heron's formula */

02

03

#include<stdio.h>

04

#include<math.h>

05

void main()

06

{

07

float a,b,c,s=0,area=0;

08

09

printf("Enter the length of sides of triangle \n");

10

scanf("%f %f %f",&a,&b,&c);

11

12

s = (a+b+c)/2.0; /* s is semi-perimeter */

13

area = (sqrt)(s*(s-a)*(s-b)*(s-c));

14

15

printf("Area of triangle =\t %f",area);

16

getch();

17

}


manaswinisingh90: please answer it correctly...with output
Similar questions