- Related Questions & Answers
- Area of a triangle inside a parallelogram in C++
- C Program for Circumference of a Parallelogram
- Program to find the Area of a Pentagon in C++
- Find area of parallelogram if vectors of two adjacent sides are given using C++.
- C Program for Program to find the area of a circle?
- Find all possible coordinates of parallelogram in C++
- Program to find the Area of an Ellipse in C++
- Program to find the Area and Perimeter of a Semicircle in C++
- Program to find area of a Circular Segment in C++
- Java program to find the area of a rectangle
- Java program to find the area of a triangle
- Java program to find the area of a circle
- Java program to find the area of a square
- Python Program to find the area of a circle
- Program to find the Area of an Ellipse using C++

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

In this problem, we are given two values that denote the base and height of a parallelogram. Our task is to create a Program to find the Area of a Parallelogram in C++.

**Parallelogram** is a four side closed figure that has opposite sides equal and parallel to each other.

**Let’s take an example to understand the problem,**

B = 20, H = 15

300

Area of parallelogram = B * H = 20 * 15 = 300

To solve the problem, we will use the geometrical formula for area of parallelogram,

Area = base * height.

**Program to illustrate the working of our solution,**

#include <iostream> using namespace std; float calcParallelogramArea(float B, float H){ return (B * H); } int main() { float B = 20, H = 15; cout<<"The area of parallelogram with base "<<B<<" and height "<<H<<" is "<<calcParallelogramArea(B, H); return 0; }

The area of parallelogram with base 20 and height 15 is 300

Advertisements