Listing 6

  long getMin(long array[],int size){
    long min = 2147483647;
    int count = 0;
    while(count < size){
      if(array[count] < min){
        min = array[count];
      }//end if
      count = count + 1;
    }//end while loop
    return min;
  }//end getMin
  
Listing 6