All pastes #1467786 Raw Edit

gnu

public text v1 · immutable
#1467786 ·published 2009-06-20 17:32 UTC
rendered paste body
#include <stdio.h>#include <stdlib.h>#include <time.h>void sleep(int nb_seconds){     clock_t goal;     goal = (nb_seconds * CLOCKS_PER_SEC) + clock();     while(goal > clock())     {	  ;     }} int main (){     int i=0; int time = 1;     for (i=0;i<10;i++)     {	       printf("\r%i",i);	       fflush(stdout);	       sleep(1);     }     printf("\n");     return 0;}