Javatpoint Logo
Javatpoint Logo

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

  1. Define the base of the parallelogram.
  2. Define the height of the parallelogram.
  3. 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#




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials