Here, we will read the base, altitude of the Parallelogram from the user. Then we will calculate the area of Parallelogram and print the result.
Area of Parallelogram formula = b x h
Where b is the base and h is the height or altitude of the Parallelogram.
Program/Source Code:
The source code to calculate the area of the Parallelogram is given below. The given program is compiled and executed successfully.
Output:
Explanation:
Here, we read the value of base, altitude from the user. Then we calculated the area of Parallelogram and printed the result.
need an explanation for this answer? contact us directly to get an explanation for this answer