Originally Posted by
quzah
You made a screenshot of your code? How about actually just posting it here between code tags like a normal person?
Quzah.
Thank you friend. But in the source it was image. Anyway, I typed now in notepad and made copy paste here
Code:
int main()
{
int matrix[3][3],i,j,r,c;
clrscr ();
printf ("Enter the order of matrix\n");
scanf("%d%d", &r, &c);
printf ("Enter elements of %d * %d matrix\n", r,c);
for (i=0; i<r; i++)
for (j=0; j<c; j++)
scanf ("%d", &matrix[i][j]);
printf ("Given matrix:\n");
for (i=0; i<r; i++)
{
for (j=0; j<c; j++)
printf ("%d\t", matrix[i][j]);
printf ("\n");
}
printf ("%d\t", matrid [2][2]);
getch ();
return 0;
}