Write a c program for triangle
#include <stdio.h>
#include <conio.h>
void main()
{
float ht,base,area;
clrscr();
printf("Enter the height and base of the triangle");
scanf("%f %f",&ht, &base);
area=0.5*ht*base;
printf("Area of the triangle is= %.2f",area);
getch();
}
#include <conio.h>
void main()
{
float ht,base,area;
clrscr();
printf("Enter the height and base of the triangle");
scanf("%f %f",&ht, &base);
area=0.5*ht*base;
printf("Area of the triangle is= %.2f",area);
getch();
}