为什么会出现syntax error : missing ';' before 'type'
#include<stdio.h>int tex(int x )
{
int f=0,i;
for(i=2;i<=(x-1);i++)
if(x%i==0)
f=1;
return f;
}
main()
{int b,a;
scanf("%d",&b);
int tex(int );
a=tex(b);
printf("%d",a);
}
2012-03-24 21:42
2012-03-24 22:04
2012-03-24 23:12
2012-03-24 23:40
2012-03-25 00:31