Convert binary numbers to Gray code and vice versa. Useful for electronics and digital system design.