Code:

long int Tich(int A[], int n){
   int temp = 1;
   for(int i = 0; i<n ; i++)
      temp*=A[i];
   return temp;
}