RosettaCodeData/Task/Gray-code/PicoLisp/gray-code-2.l

5 lines
140 B
Plaintext

(prinl " Binary Gray Decoded")
(for I (range 0 31)
(let G (grayEncode I)
(tab (4 9 9 9) I (bin I) G (grayDecode G)) ) )