Using MPI_Gather and MPI_Scatter
This examples present a simple program to demonstrate the use of MPI_Gather and MPI_Scatter. The MPI_Gather code gathers three integer numbers, one from each of three processes, on to the root process. The MPI_Scatter example is the opposite; it scatters three integers from the root process to three processes, one integer per process. Copy these examples, compile and run them.