-->

solution4

// program to get area of triangle
#include<stdio.h>
#include<conio.h>
void main()
{
float base,height;
float area;
printf(“enter base and height of triangle\n”);
scanf(“%f%f”,&base,&height);
area=0.5*base*height;
printf(“the area is=%f\n”,area);

getch();
}