Q. Write a program to find the area of triangle.


You can understand by Watching video :-



Answer :-

height = int(input("Enter the height of triangle = "))
base = int(input("Enter the base of triangle = "))
area = 0.5 * height * base
print("Area of triangle = ",area)

Output :-

Enter the height of triangle = 5
Enter the base of triangle = 10
Area of triangle =  25.0

>>> 

Enter the height of triangle = 50
Enter the base of triangle = 69
Area of triangle =  1725.0

>>>

Post a Comment

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

Previous Post Next Post