q4.py
# Write a program that receives input from the user to calculate the area of a triangle.
base = int(input("Enter base length of triangle(m): "))
height = int(input("Enter height of triangle(m): "))
print("area =", 0.5 * base * height)
Personal resource archive for various courses.
# Write a program that receives input from the user to calculate the area of a triangle.
base = int(input("Enter base length of triangle(m): "))
height = int(input("Enter height of triangle(m): "))
print("area =", 0.5 * base * height)