Computer Science, asked by deeptanshuyadav4, 7 months ago

WAP in java to enter the three sides of a triangle(a,b &c) and print its area using heron's formula: s=(a+b+c)/2 area=√s(s-a)(s-b)(s-c)

Answers

Answered by s19317aayush
1

The area of a triangle can be calulated as (s*(s-a)*(s-b)*(s-c))^(1/2), where s is semi-perimeter of the triangle

s = (a + b + c)/2

.

I hope this is helpful you guys

Similar questions