how to compute area of triangle code example
Example 1: how to find the area of a triangle
b = 3
h = 3
t = 5
i = 5
p = t*i
print("this is the area of the parrelogram")
print(b * h)
m = input("do you want to calculate a triangle? (space before answer)")
print(m)
if m == " yes":
print ("this is the area of the triangle that you inputed")
print (p/2)
else:
print("ok")
Example 2: triangle area formula
double traingleArea = base * height / 2;
Example 3: what is the formula to find the area of a triangle
A=hbb
2=5·5
2=12.5