Area of Triangle in Python || Height and Base || Geometric Program || Python

In this we are going to see a basic program to calculate area of triangle when height and base given in Python Programming Language.




base = float(input('Length of base: '))
height = float(input('Measurement of height: '))
area = base * height/2
print("Area is:",area,"sq units")

#Code by Shrinivas


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post