Connect with one of the following accounts


Please wait while we redirect...

Views: 327   

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)


Please enter base of parallelogram: 15
Please enter height of parallelogram: 20
Area of parallelogram is:  300.0

On By

Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News