Area of Scalene triangle in python-Python programming

Опубликовано: 30 Сентябрь 2024
на канале: Parvat Computer Technology
994
22

Python program to calculate the area of a scalene triangle.

Heron's Formula
Mathematicians have known how to calculate the area of a triangle with three known sides for millennia. They use Heron's Formula, named after Hero of Alexandria. To use this formula, you first have to find the half-perimeter (s) of the triangle, which you do by adding all three sides and dividing the result by two. For a triangle with sides a, b and c, the half-perimeter s = 1/2(a + b + c). Once you know s, you calculate the area using this formula:

Area = square root [s (s - a) (s - b) (s - c)]

👉👉LIKE, SHARE AND SUBSCRIBE.👈👈
––––––––––––––––––––––––––––––
Track: Reflection — JayJen & Enine [Audio Library Release]
Music provided by Audio Library Plus
Watch:    • Reflection — JayJen & Enine | Free Ba...  
Free Download / Stream: https://alplus.io/Reflection
––––––––––––––––––––––––––––––