求大神解析程序为什么总是有问题,我用的是DEV-C++编译器
int main(){
int a[10];
int i;
int x;
printf("Please enter a Array:\n");
]for(i=0; i<10; i++0
{
printf("a[%d]=",i);
scanf("%d",&a[i]);
}
printf(“input the number you want to find x:”);
scanf(“%d”, &x );
for(i=0;i<10;i++)
{
if(x==a[i])
{
if(i<10)
{
printf("the pos of x is:%d\n",i);
}
else
{
printf("can not find the x");
}
}
break;
}
return 0;
}