#include <stdio.h> #include <stdlib.h> #include <string.h> #define LEN 100 int seq[LEN + 1] = {0}; int *mid = NULL; int pos = 1; void getmid(int start, int end); int check(int num); int main() { int val; int num; int ret; int i; printf("input the sequence, end it with '-9999': ");