Write a C program that accept the base and height of a Right Angle Triangle from the user and find the area of the given Right Angle Triangle.
Code:
#include<stdio.h>
int main() {
int b, h;
float area;
printf("\nEnter the base of Right Angle Triangle : ");
scanf("%d", &b);
printf("\nEnter the height of Right Angle Triangle : ");
scanf("%d", &h);
area = 0.5 * b * h;
printf("\nArea of Right Angle Triangle : %f", area);
return (0);
}