#include <stdio.h>
float base, height, area;
int main() {
printf("enter the length of base = ");
scanf("%f",&base);
printf("\nenter the length of height = ");
scanf("%f",&height);
area = (base*height)/2;
printf("\narea of triangle with base %f and height %f is = %f",base,height,area);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: