98
Program to find the area of the parallelogram
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
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)
Solution
C Program
Output:
Area of the parallelogram=72
PHP Program
Output:
Area of the parallelogram=72
Java Program
Output:
Area of the parallelogram=72
C# Program
Output:
Area of the parallelogram=72
Python Program
Output:
Area of the parallelogram=72
Next Topic#