public int sum(int len, params int[] array1)
{
   int s = 0;
   for (int i = 0; i < len; i++) 
     s += array1[i];
   return s;
}
