input:
1 2
1 3
Desired O/P:
0 1 1
1 0 0
1 0 0
Here 1 and 2 are linked thus 2 and 1 are linked too, so the value of matrix at 01 and 02 is 1
Same goes for 1 and 3
Can you please add the code for desired output?Code:#include<stdio.h>
#include<conio.h>
main()
{
int a[2][2],i,j;
for(i=0;i<2;i++)
for(j=0;j<2;j++)
scanf("%d",&a[i][j]);
}
thanks