#include <stdio.h>
float calculate(float,float);//prototype

void main()
{
float base,height,answer;
printf("Please enter base");
scanf("%f",&base);
printf("Please enter height");
scanf("%f",&height);
answer=calculate(base,height);
printf("%f",answer);
}

float calculate(float b,float h)
{
float answer;
answer=(0.5*b)*h;

return answer;

}
