Find area of right angle triangle - C Program

C program to find area of right angle triangle.

Solution:

This program is for finding the area of a right angle triangle. To calculate an area of right angle triangle we must know the base and height of triangle.

Formula for finding the Area of Right Angle Triangle = 1/2 * b * h

#include<stdio.h>
int main()
{
     int base, height;
     float area_rt;
     printf("Enter Base   : ");
     scanf("%d",&base);
     printf("Enter Height : ");
     scanf("%d",&height);
     area_rt=(1/2.0)*base*height;
     printf("\nArea of Right Angle Triangle = %.2f",area_rt);
     return 0;
}


Output:

area right angle triangle