hi everyone,

i am a CS undergraduate currently in my last semester and doing Parallel Processing.i have this one particular project on matrix multiplication using MPI C.i have written the code to generate 2 matrixes - matrix A and B using a multi-dimensional array and rand() function to generate random numbers for the elements of the matrix (numbers 1-9).

the output i get is somehow correct.but my slave processors are not working.my lecturer told me that there is a bug in the program logic.please help me to correct this error.i have tried many times.still confused.i have pasted my code and screen capture below...my program doesn't work properly if the number of processors are increased from 3 to higher number of processors...tensed...!very tensed...