Computer Science, asked by rafiloyola3020, 6 months ago

Write a program to find area of triangle with its base and height ( b*h*/2)

Answers

Answered by Pablu
0

Answer:

The following code is in python. Kindly check the identation yourself ;)

Explanation:

def areaOfTraingle(base, height) :

     area = (base * height)/2

     return area

if __name__ == "__main__" :

   b = int(input("Enter the base of traingle : "))

   h = int(input("Enter the height of traingle : "))

   print(" The area of triangle is ", areaOfTraingle( b, h ), " sq m")

Hope you get it. Kindly mark me the brainliest

Similar questions