返回主页
学习人数: 23.0k
stroke-dashoffset="*2.6389" stroke-linecap="round" transform="rotate(-90 50 50)"/>
正确率: 100%
未通过

下面程序的功能是在a数组中查找与x值相同的元素所在位置,请填空。

#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”);

}

回答区域
提示
提示内容

登录后提交答案


由于参与答题的同学过多,仅展示其中100个同学的回答 (点击展开回答)