C Program to find area of trapezoid

Program

#include<stdio.h>
void main()
{
    int area, short_base, long_base, height;
    printf("Enter height:\t");
    scanf("%d", &height);
    printf("Enter short base:\t");
    scanf("%d", &short_base);
    printf("Enter long base:\t");
    scanf("%d", &long_base);
    area = ((short_base + long_base) / 2 ) * height;
    printf("Area of trapezoid is:\t%d\n", area);
}

Output

Enter height:   8
Enter short base:       4
Enter long base:        6
Area of trapezoid is:   40