# include <conio.h>
# include <stdio.h>
Prime(int m);
{
int j,p;
p=1;
for(j=2;j<m;j++)
if!(m%j)
{
p=0;
break;
}
return(p);
}
main()
{
int i,n;
printf("\nplease enter an integer number between 2 and 5000:");
scanf("%d",&n);
printf("\n\nThe prime factor(s) of %d is(are):",n);
for(i=2;i<n;i++)
if((!(n%i)) && (Prime(i)))
printf(" %4d,",i);
printf("\n");
}
modi.c
d:\wexam\24301001\modi.c(5) : error C2449: found '{' at file scope (missing function header?)
d:\wexam\24301001\modi.c(16) : error C2059: syntax error : '}'
Error executing cl.exe.
modi.obj - 2 error(s), 0 warning(s)
那位高手知道啊,教下小弟啊。