Question:C program for area of a trapezium 

Answer 
#include<stdio.h>

int main(){

    float b1,b2,h;
    float area;

    printf("Enter the size of two bases and height of the trapezium : ");
    scanf("%f%f%f",&b1,&b2,&h);

    area = 0.5 * ( b1 + b2 ) * h ;
    printf("Area of trapezium is: %.3f",area);
    return 0;
}
Sample output: Enter the size of two bases and height of the trapezium: 5 8 3 Area of trapezium is: 19.500 

+ ExplanationNot Moderated
+ Report
Total Preview: 474
C program for area of a trapezium
Copyright © 2024. Powered by Intellect Software Ltd