Q. Write a user-defined function to calculate the area of a triangle.


Answer =


def area_of_triangle(b, h) :
    return 1 / 2 * b * h

 

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post