#!/usr/bin/env cscript #include <stdio.h> #include <string.h> #define ALPHABET "ABCDEFGHIJKLMNOPQRSTUVWXYZ" void increment_column(char *column_string) { char *needle; for (needle = &column_string[strlen(column_string) - 1]; needle >= column_string; needle--) { if (*needle == 'Z') { *needle = 'A'; *(needle + 10 += 1; } else { *needle += 1; break; } } } int main(int argc, const char *argv[]) { char column_string[3 + 1]; strcpy(column_string, "A"); for (int n = 1; n <= 78; n++) { puts(column_string); increment_column(column_string); } return 0; }