Friday, March 20, 2009

POLYNOMIAL ADDITION

?#include
#include

void main()
{
int r1,c1,r2,c2,i,j,k;
static int a[10][10],b[10][10];
static int ans[10][10],a2[10][10],b2[10][10],ab[10][10];
clrscr();
printf("Enter the ROW & COL VALUES MATRIX A\n");
scanf("%d%d",&r1,&c1);
printf("Enter the ROW & COL VALUES MATRIX B\n");
scanf("%d%d",&r2,&c2);
printf("Enter the values of first matrix--->\n");
for(i=0;i<r1;i++) k="0;k<r2;k++)" i="0;i<r2;i++)" j="0;j<c1;j++)">\n\n");
for(i=0;i<r1;i++)> {
for(j=0;j<c2;j++)> {
printf("\t%d",ans[i][j]);
}

printf("\n");
}

getch();
}

No comments:

Post a Comment