This is a C Program to Find Area of Parallelogram.

This C Program calculates the area of Parallelogram.

The formula used in this program are Area = b * a where b is the length of any base, a is the corresponding altitude.

Here is source code of the C Program to Find the area of Parallelogram. The C program is successfully compiled and run on a Linux system. The program output is also shown below.

/* * C Program to Find Area of Parallelogram */ #include <stdio.h> int main() { float base, altitude; float area; printf("Enter base and altitude of the given Parallelogram: \n "); scanf("%f%f", &base, &altitude); area = base * altitude; printf("Area of Parallelogram is: %.3f\n", area); return 0; }

In this C program, library function defined in <math.h> header file is used to compute mathematical functions. We are reading the ‘base’ and ‘altitude’ of a parallelogram. To find the surface area, the following formulas is used.

Area = base * altitude

Output: $ cc pgm27.c $ a.out Enter base and altitude of the given Parallelogram: 17 19 Area of Parallelogram is: 323.000

**Sanfoundry Global Education & Learning Series – 1000 C Programs.**

Here’s the list of Best Reference Books in C Programming, Data-Structures and Algorithms