/*Software Development in the UNIX Environment Sample C Program Example C Program to Compute PI Using A Monte Carlo Method Source code:*/ /* Program to compute Pi using Monte Carlo methods */ #include #include #include #include #define SEED 35791246 int main(int argc, char**; double pi; printf("Enter the number of iterations used to estimate pi: "); scanf("%d",&niter); /* initialize random numbers */ srand(SEED); count=0; for ( i=0; i