C Programming Code Examples C > Mathematics Code Examples Program to Find Area of Parallelogram 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. #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; }