Skip to content

Instantly share code, notes, and snippets.

@oneman
Created November 3, 2023 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oneman/051875f6456c3bcf6b81e60ac4c2d0b5 to your computer and use it in GitHub Desktop.
Save oneman/051875f6456c3bcf6b81e60ac4c2d0b5 to your computer and use it in GitHub Desktop.
Virginia Standard Code for Information Integration
#include <stdio.h>
/* Virginia Standard Code for Information Integration */
int main(int argc, char **argv) {
int i, j;
for (i = 1; i < 3*3*3; i++) {
printf("%c ", i + 96);
for (j = 5 - 1; j >= 0; j--) {
putchar(i & (1u << j) ? '1' : '0');
}
printf("\n");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment