programming-examples/python/Math/Calculate the area of a parallelogram.py

10 lines
480 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
# A parallelogram is a quadrilateral with opposite sides parallel (and therefore opposite angles equal). A quadrilateral with equal sides is called a rhombus, and a parallelogram whose angles are all right angles is called a rectangle.
Test Data :
Length of base : 5
Height of parallelogram : 6
Expected Output: Area is : 30.0
base = float(input('Length of base: '))
height = float(input('Measurement of height: '))
area = base * height
print("Area is: ", area)