#include #define SIZE 30000 void Calculate() { int generalProgress=0,i,j,percentDone, found=0,procid; static double X[SIZE]; for( i = 0; i <= SIZE; i ++ ) { X[i] = sqrt(exp(cos(i))*exp(sin(i))); for(j=1;j 0.5) found ++; generalProgress++; percentDone = (int)((float)generalProgress/(float)SIZE *100.0 + 0.5); if( percentDone % 10 == 0 ) printf("\n\b\b\b\b%3d%%", percentDone); } printf("\nfound %d\n",found); } int main(int argc, char **argv) { Calculate(); }