1、实验代码:
include<stdio.h>
int main(void)
{
int i,b=0,N,X;
scanf("%d %d\n",&N,&X);
int a[N];
for(i=0;i<N ;i++){
scanf("%d",&a[i]);
}
for(i=0;i<N;i++){
if(a[i]==X){
b=1;
printf("%d\n",i);
break;
}
}
if(b==0){
printf("Not Found");
}
return 0;
}
2、流程图:
{{uploading-image-893559.png(uploading...)}}