[求助]请问这一题利用函数求三角形面积哪里有问题?
#include<stdio.h>double smj();
void main ()
{
float mj;
mj = smj();
}
smj()
{
float di,gao;
double mj;
printf("\n请输入三角形的底:");
scanf("%f",&di);
printf("\n请输入三角形的高:");
scanf("%f",&gao);
printf("\n三角形的面积等于: %f\n",(di*gao)/2);
return mj;
}