Hello, I need to modify the following for statement , you can notice thatthe pri
ID: 3619107 • Letter: H
Question
Hello,
I need to modify the following for statement , you can notice thatthe printf statement will be repeated twice for every two objects..for example .. one time : " Enter number of messagesbetween 1 and 2 " and the other time " Enter number of messagesbetween 2 and 1" . Well, I need this statement one time .. eitherthe first one or the second one .
for( i = 0 ; i < 6 ; i++ )
{
for(j=0;j<6;j++)
if(i+1!=j+1)
{
printf("Enter number of messages between %d and %d:",i+1,j+1);
scanf("%d" , &signals[i][j]);
}
else
signals[i][j] = 0 ;
}