C Program to find the Area of Right Angle Triangle

The Area of Right Angle Triangle can be calculated by using formulae: (base * height)/2. For example: if base and height of Area of Right Angle Triangle are 8 and 3, then the Area of Right Angle Triangle will be 12. The below given C program will find the Area of Right Angle Triangle. Kindly check out the program to find the Area of Right Angle Triangle

Area of Right Angle Triangle Program

#include<stdio.h>

int main(){

int height, base;

float area;

printf("Give the height of Right Angle Triangle : ");

scanf("%d", &height);

printf("

Give the base of Right Angle Triangle : ");

scanf("%d", &base);

area = (base * height)/2;

printf("



The Area of Right Angle Triangle is : %f", area);

return (0);

}

Sample Output:

Give the height of Right Angle Triangle : 3

Give the base of Right Angle Triangle : 8

The Area of Right Angle Triangle is : 12