1 2 3 4 5 6 7 8 9 10 11
#include <stdio.h> #include <time.h> int main() { char i = 0; while (1) { printf("%d\n", i); i++; sleep(1); } return 0; }