Computer Science, asked by kanisharchueck, 7 months ago

write a program to find area of triangle using herons formula

(computer science)​

Answers

Answered by khushant90
8

Answer:

Input : a = 5.0, b = 7.0, c = 9.0.

step 1 : calculate semi-perimeter, s = (a + b + c)/2. s = (5.0 + 7.0 + 9.0) / 2. = (21) / 2. ...

step 2 : calculate Area of triangle = (s * (s - a_) * (s - b_) * (s - c_) = 10.5 * (10.5 - 5.0) * (10.5 - 7.0) * (10.5 - 9.0) ...

Output : Area of Triangle : 17.412280149 square units

Explanation:

plz make me brainliest

Answered by Vanshita34
13

Answer:

Step 1: In this C program, User will enter the three sides of the triangle a, b, c. Step 2: Calculating the Perimeter of the Triangle using the formula P = a+b+c. Step 4: Calculating the Area of a triangle using Heron's Formula: sqrt(s*(s-a)*(s-b)*(s-c));

I hope it will help u plz mark my answer as BRAINLIEST be Brainly mate

Similar questions