Write a program to accept base and height from the user. Calculate and display the area of the triangle. Also, display a message according to the following conditions: [Hint: Area of the triangle= 1/2 X base X height ]
3 points
Answers
Answered by
2
Input :
b = int( input("Enter the base : "))
h = int( input("Enter the height : "))
print(" Area of the triangle = ½ * b * h ")
print(" Area of the triangle = ",(b * h)/2)
Output :
Enter the base : ___
Enter the height : ___
Area of the triangle = ½ * b * h
Area of the triangle = ____
Mark my answer as brainliest...
Similar questions