#include #include #include int main(){ clock_t begin,end; long int numSteps=1000000; double step; int i; double x,pi,sum=0.0; step=1/(double)numSteps; begin=clock(); omp_set_num_threads(4); //I have set the number of threads =4, you can change this. #pragma omp parallel { for(i=0;i