print("For Triangle :: \n")
base = float(input("Enter Base :: "))
height = float(input("Enter Height :: "))
area = 0.5 * base * height
print("Area Of Triangle :: ", area)
print("\nFor Rectangle :: \n")
width = float(input("Enter Width :: "))
height = float(input("Enter Height :: "))
area = width * height
print("Area Of Rectangle :: ", area)
print("\nFor Trapezium :: \n")
a = float(input("Enter First Parallel Side :: "))
b = float(input("Enter Second Parallel Side :: "))
height = float(input("Enter Height :: "))
area = (0.5 * (a+b) * height)
print("Area Of Trapezium :: ", area)
print("\nFor Square :: \n")
a = float(input("Enter Length Of Side :: "))
area = a * a
print("Area Of Square :: ", area)
print("\nFor Circle :: \n")
radius = float(input("Enter Radius of Circle :: "))
area = 3.1416 * radius * radius
print("Area Of Circle :: ", area)
Comments
Post a Comment