c trapezoid area
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int main() {
double a, b, c, d;
printf("TRAPEZOID AREAnnnMajor base: ");
scanf("%lf", &a);
printf("nMinor base: ");
scanf("%lf", &b);
printf("nHeight: ");
scanf("%lf", &c);
d = (a + b)*c/2.0;
printf("nnThe area is: %lfnnn", d);
system("pause");
}