Advertisement
Istanvir389

Area Of a Trapizium

Jul 19th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. float a,b,d,area;
  5. printf("Enter the value of a==");
  6. scanf("%f",&a);
  7. printf("enter the value of b==" );
  8. scanf("%f",&b);
  9. printf("enter the value of d==");
  10. scanf("%f",&d);
  11. area=(0.5*(a+b)*d);
  12. printf("The t is %0.4f",area);
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement