Answers for "what is the formular for the area of a trapezium"

C
2

area of trapezium

height = float(input("Height of trapezoid: "))
base_1 = float(input('Base one value: '))
base_2 = float(input('Base two value: '))
area = ((base_1 + base_2) / 2) * height
print("Area is:", area)
Posted by: Guest on January-22-2022
-1

formula to find the area of a trapezium in c

/* 
     formula is : (base1 + base2) / 2 * height
 */
#include <stdio.h>
int main()
{
     double base1, base2, height, area;
     scanf("%lf %lf %lf", &base1, &base2, &height);

     area = (base1 + base2) / 2 * height; // applying formula
     printf("Area: %0.3lf\n", area);
     return 0;
}
Posted by: Guest on August-02-2021

Code answers related to "what is the formular for the area of a trapezium"

Code answers related to "C"

Browse Popular Code Answers by Language