You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
358 B
C

/*
* C Program to Find Area of a Right Angled Triangle
*/
#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;
}