Podcast
Questions and Answers
Increase even digit by 1 and decrease odd digit by 1 of an integer number
Increase even digit by 1 and decrease odd digit by 1 of an integer number
algorithm
4058396 (4+1)=5, (0+1)=1, (5-1)=4, (8+1)=9, (3-1)=2, (9-1)=8, (6+1)=7
4058396 (4+1)=5, (0+1)=1, (5-1)=4, (8+1)=9, (3-1)=2, (9-1)=8, (6+1)=7
example
N = 4058396
N = 4058396
input