帮我看下问题出在哪!谢谢
一直提示function call missing >in function prime就是没找到问题在哪!!#include<math.h>
int prime(int n)
{int i,p=1;
fot(i=2;i<n/2&&p==1;i++)
if(n%i==0)
p=0;
return(p);
}
main()
{
int m;
printf("Input an integer:");
scanf("%d",&m);
if(prime(m))
printf("%d is a prime\n",m);
else
printf("%d is not a prime\n",m);
}