- #include <stdio.h>
- void main()
- { int a[10],i,x;
- printf(“input 10 integers:”);
- for(i=0;i<10;i++)
- scanf(“%d”,&a[i]);
- printf(“input the number you want to find x:”);
- scanf(“%d”, ___);
- for(i=0;i<10;i++)
- if( ___)
- break;
- if( ___ )
- printf(“the pos of x is:%d\n”,i);
- else printf(“can not find x!\n”);
- }