Skip to content

Instantly share code, notes, and snippets.

@Hardtack
Created September 13, 2013 01:43
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 Hardtack/6545984 to your computer and use it in GitHub Desktop.
Save Hardtack/6545984 to your computer and use it in GitHub Desktop.
Print 8
#include <stdio.h>
#include <string.h>
char* f(char *s, int x){return x==81?s:(strcat(s, (x/9%4==0)&&x%9!=8?"*":((((x%9)/8)*8==(x%9))?((x%9)/8==0?"*":"*\n"):" "))&&f(s, ++x))?s:s;}
int main(void) {
char s[91]={0,};
printf("%s",f(s, 0));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment