#include #include #include #include int code(char input[],char output[],char key[][2]) { int string_len=strlen(input); int key_array_len=26; int i,k; for(i=0;i>input; fgets(input, 256, stdin); char key [][2]={ {'a', 'b'}, {'b', 'c'}, {'c', 'd'}, {'d', 'e'}, {'e', 'f'}, {'f', 'g'}, {'g', 'h'}, {'h', 'i'}, {'i', 'j'}, {'j', 'k'}, {'k', 'l'}, {'l', 'm'}, {'m', 'n'}, {'n', 'o'}, {'o', 'p'}, {'p', 'q'}, {'q', 'r'}, {'r', 's'}, {'s', 't'}, {'t', 'u'}, {'u', 'v'}, {'v', 'w'}, {'w', 'x'}, {'x', 'y'}, {'y', 'z'} }; code (input, output, key ); //cout << output; printf("%s\n", output); getchar(); return 0; }