#include <stdio.h>

int width, height, s, area;

void main()
{
printf("This program is to caclulate the area of a triangle.\n");
scanf("%d %d", &width, &height);
s = width * height;
area = s / 2;
printf("Width = %d, Height = %d, Area = %d\n", width, height, area);
}

+ Recent posts