Python program to calculate the area of a parallelogram | source code
Feb 7, 2021
what is parallelogram ? :
A four-sided plane rectilinear figure with opposite sides parallel.
Types of parallelogram :
- Rectangle
- Rhombus
- Square
Formula to calculate Area of parallelogram :
Let’s Suppose a and b are the set of parallel sides of a parallelogram and h is the height of parallelogram, then based on the length of sides and height of it, the formula for its area is :
Area = Base × Height
A = b × h [sq.unit]
Python program to calculate area of the parallelogram:
l =float(input(“Enter base/length of the parallelogram : “))
h =float(input(“Enter height of the parallelogram : “))
area = l*h
print(“The area of given parallelogram is : “, area)
Visit my website- source code