Number Converter

Decimal to Gray Code

Enter a decimal number and convert it to its Gray code representation using the formula: Gray = n XOR (n >> 1).