#include #include #include char leet[] = "a @.b *.c <.d |).e 3.f |=.g g.h |-|.i 1.j j.k |<.l |.m |\\/|.n |\\|.o ().p P.q q.r &.s $.t 7.u U.v \\/.w \\/\\/.x ><.y `/.z Z"; int main () { int c; char *p, *p2, q[]=" "; while ((c = getchar()) != EOF) { c = tolower(c); if (c >= 'a' && c <= 'z') { q[0]=(char)c; p = strstr(leet,q)+2; // We assume the leet set has all characters, no error checking! p2 = index(p,'.')-1; while (p<=p2) putchar(*(p++)); } else { putchar((char)c); } } return 0; }