C Program to find area of right angled triangle

Program

#include<stdio.h>
void main()
{
	int base, height;
	float area;
	printf("Enter the base:\n");
	scanf("%d", &base);
	printf("Enter the height:\n");
	scanf("%d", &height);
	area = 0.5 * base * height;
	printf("Area of right angle triangle : %f\n", area);
}

Output

Enter the base:
6
Enter the height:
8 
Area of right angle triangle : 24.000000