Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int a[100][100],b,c,d,e,f,i,j,k,l;
- char x,y;
- for(i=1;i<=6;i++)
- {
- for(j=1;j<=6;j++)
- {
- scanf("%d",&a[i][j]);
- }
- }
- for(i=1;i<=6;i++)
- {
- for(j=1;j<=6;j++)
- {
- if(a[i][j]==1)
- {
- if(i==1) x='A';
- else if(i==2) x='B';
- else if(i==3) x='C';
- else if(i==4) x='D';
- else if(i==5) x='E';
- else if(i==6) x='F';
- if(j==1) y='A';
- else if(j==2) y='B';
- else if(j==3) y='C';
- else if(j==4) y='D';
- else if(j==5) y='E';
- else if(j==6) y='F';
- printf("%c->%c\n",x,y);
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement