Description: program that reads an integer value from the terminal and distributes the value to all of the MPI processes. Each process should print out its rank and the value it received. Values should be read until a negative integer is given as input. You may find it helpful to include a fflush (stdout) after the printf calls in your program. Without this, output may not appear when you expect it.
File list (Check if you may need any files):
Lab06
.....\bin
.....\...\Debug
.....\...\.....\Lab05_Q5.exe
.....\...\.....\Lab06.exe
.....\...\.....\Lab06_Q2.exe
.....\Lab06.cbp
.....\Lab06.layout
.....\Lab06_01.c
.....\Lab06_01.rar
.....\Lab06_02.c
.....\Lab06_02.rar
.....\Lab06_03.c
.....\Lab06_03.rar
.....\obj
.....\...\Debug
.....\...\.....\Lab05
.....\...\.....\.....\Q4.o
.....\...\.....\Lab06_01.o
.....\...\.....\Lab06_02.o
.....\...\.....\Lab06_03.o