Math, asked by dustxdevilxo, 5 months ago

whats the python code for a triangle?​


HeartHacker143: hi
dustxdevilxo: oh hey
dustxdevilxo: lmao, hewo
dustxdevilxo: just joined rn, this place is actually kinda cool
dustxdevilxo: yeah!

Answers

Answered by HeartHacker143
2

Step-by-step explanation:

The center of gravity is the average location of the weight of an object. We can completely describe the motion of any object through space in terms of the translation of the center of gravity of the object from one place to another, and the rotation of the object about its center of gravity if it is free to rotate.

Python program to find the area of a triangle

1). # Three sides of the triangle is a, b and c:

2). a = float(input('Enter first side: '))

3). b = float(input('Enter second side: '))

4). c = float(input('Enter third side: '))

5). # calculate the semi-perimeter.

6). s = (a + b + c) / 2.

7). # calculate the area.

8). area = (s*(s-a)*(s-b)*(s-c)) ** 0.5..

Similar questions