Created
September 8, 2014 11:26
-
-
Save aki-lua87/505ea749194d6a59861c 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<stdio.h> | |
int main(void) | |
{ | |
int mk[127]; | |
mk[0] = 1; | |
mk[1] = 1; | |
mk[2] = 1; | |
mk[3] = 1; | |
mk[4] = 1; | |
mk[5] = 1; | |
mk[6] = 1; | |
for (int i = 7; i < 128; i++) | |
{ | |
mk[i] = mk[i - 7] ^ mk[i - 1]; | |
} | |
for (int i = 0; i < 128; i++) | |
{ | |
printf("%d -> %d \n",i,mk[i]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment