In the question asked here, task is to convert decimal numbers to alphabets, like
1: A 2: B . . . 26: Z 27: AA . . . 703: AAA
the method used to generate the alphabets is ::
1: subtract 1 from the number
2: calculate number % 26 where % is remainder operator and
if remainder is 0 print A, for 1 print B .... for 25 print Z.
3: divide the number by 26.
4: repeatedly perform steps 1 to 3, till the number becomes zero.
how this method is working? what is the logic behind this? please explain.