pastebin

Paste Search Dynamic
Recent pastes
Area of
  1. #include <stdio.h>
  2. int main()
  3. {
  4.     float a, b, h;
  5.     float area;
  6.  
  7.     printf("Enter the value for two bases & height of the trapezium: n");
  8.     scanf("%f%f%f", &a, &b, &h);
  9.     area = 0.5 * (a + b) * h ;
  10.     printf("Area of the trapezium is: %.3f", area);
  11.     return 0;
  12. }
Parsed in 0.005 seconds