#include <stdlib.h>
#include <stdio.h>
void go(void){;}
void quit(void){exit(0);}
void (*where_to_go[2])(void)={go, quit};
void calc(int current, int end)
{
where_to_go[(current-1)/end]();
// printf("%d\t%d\t%d\n", current, end, current/end);
printf("%d\t",current);
calc(++current, end);
}
main()
{
calc(1, 1000);
printf("\n");
}
No comments:
Post a Comment