Advertisement
Avdluna

DECIFRA.C

Aug 14th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<string.h>
  4.  
  5. int main(){
  6.  
  7. int i;
  8. char s[150], y[150];
  9.  
  10.  scanf("%s %s",s , y);
  11.  
  12.     for(i = 0; i < strlen(y); i++){
  13.         int pos = y[i] - 'a';
  14.         y[i] = s[pos];
  15.     }
  16.         printf("%s\n" , y);
  17.  
  18.  
  19.  
  20.  
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement