Semester : S1 and S2
Subject : Computer Programming
Year : 2017
Term : DECEMBER
Branch : BIOTECHNOLOGY
Scheme : 2015 Full Time
Course Code : CS 100
Page:24
printf ("Enter rows and column for first matrix: ");
scanf("%d 50", & 11, &cl1l);
printf ("Enter rows and column for second matrix: ");
scanf("%d 587,812, &೦2) ;
while (cl != 22)
1
scanf("%d %d",&r2, &c2);
// Storing elements of first matrix.
printf ("\nEnter elements of matrix 1:\n");
for(i=0; 1:21 ++i) for(j=0; j
{
printf ("Enter elements ೩0686: ",1+1, j+1);
scanf("%d", &a[i][j]);
}
// Storing elements of second matrix.
printf ("\nEnter elements of matrix 2:\n");
for(i=0; i
{
printf ("Enter elements 18646: ",1+1, j+1);
scanf ("%d",&b[i][j])7
}
// Initializing all elements of result matrix to 0
701 (350; 1:21 ++i) for(j=0; j
result[i][j] = 07