if(m==a[n]){ printf("您输入的数字在数组中找到。"); printf("%d\n",n); break;}if(n==9) printf("您输入的数字未在数组中找到。");
不是m==a[i]是m==a[n]
最后for循环,a[i]改成a[n]。