编辑代码

#include <stdio.h>
int main () {
int a[10]={7,9,2,5,6,4,1,3,8,10};
for(int i =0;i<10;i++){
    if(a[i]==6){
        printf("%d",i+1);
    }
}
}