1. Coding #include #include #include int main(void){ char greeting[100]; int my_rank,comm_sz,source; MPI_Init(NULL,NULL); MPI_Comm_rank(MPI_COMM_WORLD,&my rank); MPI_Comm_size(MPI_COMM_WORLD,&comm_sz); if(my_rank!=0){ sprintf(greeting, "Greeting from process %d of %d",my_rank,comm_sz); MPI_Send(greeting,strlen(greeting)+1,MPI_CHAR,0,5,MPI_COMM_WORLD); } else{ printf("Greetings from process %d of..