/* * "count up" from N to M, recursively */ #include /* "count up" from start to end */ void count(int start, int end) { if (start > end) { printf("THE END\n"); } else { printf("%d\n", start); count (start+1, end); } } /* main program */ int main(void) { int N, M; printf("enter start, stop\n"); if (scanf("%d %d", &N, &M) == 2) { count(N, M); return 0; } else { printf("not number\n"); return 1; } }