Listing 3. pi_openmp.c /* Program to compute Pi using Monte Carlo method: (http://math.fullerton.edu/mathews/n2003/montecarlopimod.html) */ #include #include #include #include /* Returns the value of count with niter iterations*/ int part_count(int niter) { int i, count=0; float x,y,z; for ( i=0; i