Simple C program for converting text to and from Gray code