All pastes #914648 Raw Edit

Untitled

public c v1 · immutable
#914648 ·published 2008-02-23 01:43 UTC
rendered paste body
#include "stdio.h"long double i;long double start;unsigned int z;long double last_cur;long double cur;int main (int argc, char * argv[]){        sscanf(argv[1],"%Lg",&start);        for(i=start*1000000000+1;i<(start+1)*1000000000+1;i++)        {                cur = cur + 1/i;                //printf("%d,%.15g\n",i-1,last_cur);        }        printf("%Lg,%.15Lg\n",start,cur);        return 0;}<?phpfor($x = 0; $x <= 10000; $x++){        echo "./a.out $x >> hlog &\n";        if($x %8 == 0){                sleep(25);        }}