Code:

char TimKiem(int A[], int n, int x){
   for(int i = 0; i<n ; i++)
   if(x==A[i])
      return 1;
   return 0;
}