结果为什么是0呀 看不出来哪里错了
#include<stdio.h>void main()
{
int x,y;
float ave;
float average(int a,int b);
printf("please input the value of x,y:\n");
scanf("%d,%d",&x,&y);
ave=average(x,y);
printf("(%d+%d)/2.0=%d\n",x,y,ave);
}
float average(int a,int b)
{
float c;
c=(a+b)/2.0;
return c;
}