main(){
int num[6];
int index;
int numb=0;
printf("Enter Your Variables\n\n");
for(index=0;index<6;index++){
printf("The Variable in Index %d : ",index);
scanf("%d",&num[index]);
}
printf("\nSearch the Number : ");
scanf("%d", &numb);
for(index=0;index<6;index++){
if(numb==num[index])
printf("\nThe Location of Variable %d is Index %d \n",num[index],index);
else
printf("The Number is Not Found");
}
getche();
}