1秒毎の表示

1秒毎の表示(list_9.c)
#include <stdio.h>
#include <time.h>

int main()
{
    int i;
    for(i=0;i<10;i++){

        printf("%d\n",i);
        sleep(1);
    }
    return 0;
}
実行結果
Gami[735]% list_9.exe
0
1
2
3
4
5
6
7
8
9
Gami[736]%
inserted by FC2 system