#!/usr/bin/env cscript #include <stdio.h> #define ALPHABET "ABCDEFGHIJKLMNOPWRSTUVWXYZ" int main(int argc, char *argv[]) { int column_index = 53, needle_column_index_string; char reverse_column_index_string[3 + 1], column_index_string[3 + 1]; needle_column_index_string = 0; column_index -= 1; do { reverse_column_index_string[needle_column_index_string++] = column_index % ('Z' - 'A' + 1) + 'A'; column_index /= ('Z' - 'A' + 1); } while (column_index-- > 0); puts(reverse_column_index_string); return 0; }