#include<stdio.h>
double tranglearea(double a,double b);
double main()
{ double x,y,p;
printf(“enter value for base x: \n”);
scanf("%.2f",&x);
printf(“enter value for height y:\n”);
scanf("%.2f",&y);
p=tranglearea(x,y);
printf(“Area of the trangular is %.2f”,p);
}
double tranglearea(double a,double b){
double u=0.5ab;
return (u);
}