C Programming Code Examples C > Mathematics Code Examples C Program to Find Area of Trapezium C Program to Find Area of Trapezium This C Program calculates the area of trapezium. The formula used in this program are Area = (1/2) * (x + y) * h where x and y are the 2 bases of trapezium & h is the height. #include <stdio.h> int main() { float x, y, h; float area; printf("Enter the value for two bases & height of the trapezium: \n"); scanf("%f%f%f", &x, &y, &h); area = 0.5 * (x + y) * h ; printf("Area of the trapezium is: %.3f", area); return 0; }