Advertisement
Maplewing

9/5 C: Operations

Sep 4th, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.     int a,b,h;
  5.     scanf("%d%d%d", &a, &b, &h);
  6.     /*
  7.     int area;
  8.     area = (a + b) * h / 2;
  9.     */
  10.     printf("%d", (a+b)*h/2 );
  11.     //printf("%d", 321);
  12.  
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement