I need to write a C program to print the label alphabets given the label name.
In other words the program should do the following:
Input Output
==== ====
1 A
2 B
----
-----
26 Z
27 AA
28 AB
----
----
51 AY
52 AZ
53 BA
---
---
702 ZZ
703 AAA
704 AAB
etc....
I am unable to come up with a logic... I tried different logics but they are not working. Any idea on how I can proceed.
Thanks in Advance for your help.
Regards
Chari