The parallelogram is a four-sided plane rectilinear figure with opposite sides parallel. A parallelogram is a simple object in 2D space having two parallel sides. The opposite sides and the angles are identical in parallelogram.
Formula
Area of parallelogram= base x height
Algorithm
- Define the base of the parallelogram.
- Define the height of the parallelogram.
- Calculate the area of the parallelogram as base X height
Complexity
O(1)
Input:
base = 4;
height = 18;
Output:
Area of Parallelogram = base * height;
= 4 * 18
= 72
C Program
Output:
PHP Program
Output:
Java Program
Output:
C# Program
Output:
Python Program
Output: