16067 array programs
- 5. WAP to accept marks from student
and display the highest lowest
marks?
- 8. WAP to take input matrix from
user and display the matrix?
- 16. printf("enter value for 2 matrix: ");
for(i=0;i<3;i++)
{
for(j=0;j<2;j++)
scanf("%d",&b[i][j]);
}
for(i=0;i<3;i++)
{
for(j=0;j<2;j++)
{
c[i][j]=0;
for(int k=0;k<=2;k++)
{
c[i][j]=c[i][j]+a[i][k]*b[k][j];
}
}
}
- 21. WAP to find the sum of the
diagonal elements of matrix?