code: public static int min(int a, int b, int c) {
      int mi;
  
      mi = a;
      if (b < mi) {
        mi = b;
      }
      if (c < mi) {
        mi = c;
      }
      return mi;
    }
docs: Returns the minimum of three int values.