Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- int t,i,l,j,n=0;
- char s[1000];
- scanf("%d",&t);
- getchar();
- for(i=1;i<=t;i++)
- {
- if(n==1)
- printf("\n");
- n=1;
- while(gets(s))
- {
- l=strlen(s);
- if(l==0)
- {
- break;
- }
- for(j=0;j<l;j++)
- {
- if(s[j]=='0')
- s[j]='O';
- else if(s[j]=='1')
- s[j]='I';
- else if(s[j]=='2')
- s[j]='Z';
- else if(s[j]=='3')
- s[j]='E';
- else if(s[j]=='4')
- s[j]='A';
- else if(s[j]=='5')
- s[j]='S';
- else if(s[j]=='6')
- s[j]='G';
- else if(s[j]=='7')
- s[j]='T';
- else if(s[j]=='8')
- s[j]='B';
- else if(s[j]=='9')
- s[j]='P';
- }
- puts(s);
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment