i have a doubt.its about a pgm on polynomial addition.the q is that the poly nomial should be read as nos followed by spaces and terminated by -1-1eg 1 2 1 3 -1-1means1x2+1x3.max no of terms is 15.i have done ythe following pgm to do this
during exe i am not able to the second scanf for 'b'.why is it so?Code:for(i=0,j=0;j<15;j++) { scanf("%d",&a[i][j]); if((a[i][j]==-1)&&(a[i][j--]==-1)) break; } for(m=0,n=0;n<15;n++) { scanf("%d",&b[m][n]); if((b[m][n]==-1)&&(b[m][n--]==-1)) break; }