Converting a decimal number to Gray code
Input:
Enter any number N=
Make it so
Output:
(Binary)
(Gray code)