Computer Science, asked by yamuna20eee, 4 months ago

PYTHON PROGRAMMING TO FIND AREA OF TRIANGLE​

Answers

Answered by RitikaKandari
4

Answer:

Python program to find the area of a triangle

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

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

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

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

# calculate the semi-perimeter.

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

# calculate the area.

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

Answered by vikidakshi
1

Answer: python programing for a triangle

Explanation: input:

b=int(input())

h=int(input())

aot=(1/2)*b*h

print("area of triangle=",aot)

now check the area of rectangle bro/sis.

Similar questions