C Programming Code Examples C > Mathematics Code Examples C Program to Find Area of a Right Angled Triangle C Program to Find Area of a Right Angled Triangle This C Program calculates the area of a right angled triangle. The formula used in this program are Area = (1/2) * height * width. #include <stdio.h> int main() { float height, width; float area; 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); return 0; }