Created
November 11, 2015 05:35
-
-
Save dean/42b5ef7d0c532b231b18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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