Semester : S1 and S2
Subject : Computer Programming
Year : 2018
Term : MARCH
Branch : BIOTECHNOLOGY
Scheme : 2015 Full Time
Course Code : CS 100
Page:25
for(c=0;c
printf("Enter number of rows and columns of second matrix\n");
scanf("%d%d", &n, &l); — printf("Enter elements of second matrix\n"); for (c =
O;c
c
for (k = 0; k< رم k++) { sum = sum +
first[c][k]*second[k][d];
}
multiply[c][d] = sum;
sum = 0;
}
} printf("Product of the matrices:\n");
for (c=0;c
printf("\n");
) } return 0;
}
22.a)
#include
int main() ) عقطء
str1[30], str2[30];
int i;
printf("\nEnter
two strings :");
gets(str1);
gets(str2); 1-0) while (str1[i] == str2[i] && str1[i]
|= 10) i++; if (str1[i] > str2[i]) printf("str1 >
str2"); else if (str1[i] > str2[i])