Here is source code of the C Program to Find the area of a right angled triangle.The C program is successfully compiled and run on a Linux system. The program output is also shown below.
* C Program to Find Area of a Right Angled Triangle
float height, width;
printf("Enter height and width of the given triangle:\n ");
scanf("%f%f", &height, &width);
area = 0.5 * height * width;
printf("Area of right angled triangle is: %.3f\n", area);
Output: $ cc pgm24.c $ a.out Enter height and width of the given triangle: 10 15 Area of right angled triangle is: 75.000
Sanfoundry Global Education & Learning Series – 1000 C Programs.