Skip to content

Instantly share code, notes, and snippets.

@dean
Created November 11, 2015 05:35
Show Gist options
  • Save dean/42b5ef7d0c532b231b18 to your computer and use it in GitHub Desktop.
Save dean/42b5ef7d0c532b231b18 to your computer and use it in GitHub Desktop.
#include <stdlib.h>
#include <stdio.h>
int main(int argv, char** args) {
int first_letter = (int)'a';
char letters[52];
for (int i=0; i<52; i++) {
letters[i] = (char) (first_letter + i % 26);
if (i == 25)
first_letter = (int)'A';
}
printf("The sequence is: \"");
for (int i=0; i<52; i++) {
printf("%c", letters[i]);
}
printf("\".");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment