// Compiler : Dev-C++ 4.9.9.2
#include<stdio.h>
int main()
{
float b1,b2,h;
float area;
printf("Base A : ");
scanf("%f",&b1);
printf("\n\nBase B : ");
scanf("%f",&b2);
printf("\n\nHeight : ");
scanf("%f",&h);
area = 0.5 * ( b1 + b2 ) * h ;
printf("\n\n\nArea Of Trapezium Is: %.3f",area);
getch();
return 0;
}
Post a Comment