Search
 
SCRIPT & CODE EXAMPLE
 

C

area of trapezium formula

Area of trapezium (UK) or trapezoid (US) =  (sum of parallel sides) / 2 * height
Comment

how to find area of a trapezium

Area = (top+bottom / 2) * height
Comment

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
", area);
     return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: in C char to string 
C :: C Syntax of function prototype 
C :: c variable 
C :: c if statement 
C :: c Write a program to reverse an array or string 
C :: concate string in c 
C :: crear funcion en c 
C :: in c check if triangle is a right triangle 
C :: docker logs follow 
Dart :: listview.separated flutter 
Dart :: rounded raisedbutton in flutter 
Dart :: flutter format currency fcfa 
Dart :: how to make a column scrollable in flutter 
Dart :: flutter textformfield decimal 
Dart :: height appbar flutter 
Dart :: how to make list view non scrollable in flutter 
Dart :: flutter launcher icon generate 
Dart :: flutter chip delete 
Dart :: flutter on build complete 
Dart :: format currency flutter 
Dart :: text input validation message color flutter 
Dart :: flutter display widget based on device orientation 
Dart :: flutter string to datetime format 
Dart :: flutter radio buttons in alert dialoug 
Dart :: get direction routes in mapbox flutter 
Dart :: sort list bool dart 
Dart :: dart string to bytes 
Dart :: convert iso date string into date and time string flutter 
Dart :: dart extension 
Dart :: flutter string to date time 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =