Originally Posted by
enakta13
thanks
See my // comments inside your code
Code:
#include<stdio.h>
#include<conio.h> // You don't use anything declared outside of <stdio.h>
// Therefore you don't need to depend on a
// non-Standard header for your program
// I suggest you remove the dependency on <conio.h>
main()
// main should be defined as returning int
{
int a[2][2],i,j;
for(i=0;i<2;i++)
for(j=0;j<2;j++)
scanf("%d",&a[i][j]);
// you REALLY, REALLY, REALLY should test the return value of scanf()
// anyway ... scanf is a bad choice for user input. It's way better
// to fgets() and sscanf() or strtol()
}
// Looking so so up to this point. Keep it up
Have fun.