#!/usr/bin/env cscript #include int main(int argc, char *argv[]) { int index = 52, column_string_needle = 0; char column_string[3 + 1] = {0}; while (index >= 26) { printf("TICK\n"); column_string[column_string_needle++] = index / 26 + 'A'; index /= 26; index -= 1; } column_string[column_string_needle++] = index % 26 + 'A'; printf("[%s]\n", column_string); }