Python program to calculate parallelogram area
Fallowing program shows you how to calculate parallelogram area.
This program gets parallelogram base and height from user and calculates area and prints it using following formula
Area = base X height
parallelogramBase = float(input("Please enter base of parallelogram:"))
parallelogramHeight = float(input("Please enter height of parallelogram:"))
areaOfParallelogram = parallelogramBase * parallelogramHeight
print("Area of parallelogram is: " , areaOfParallelogram)
Output:
Please enter base of parallelogram: 15
Please enter height of parallelogram: 20
Area of parallelogram is: 300.0