题目内容
下面程序的功能是在a数组中查找与x值相同的元素所在位置,请填空。 #include 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”); }
查看答案
搜索结果不匹配?点我反馈
更多问题