area of a right angle triangle code example
Example: area of a right angle triangle
#include
int main(){
float h, b, A;
printf("What is the Height and base of the triangle: \n");
scanf("%f %f", &h, &b);
A = 0.5 * b *h;
printf("Area is %f\n", A);
}