Created
November 7, 2019 02:08
-
-
Save cosinekitty/9d30ef99cd71a49b1e70681de45e075f to your computer and use it in GitHub Desktop.
The working quine.
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() | |
{ | |
int i, k; | |
char s[] = {35,105,110,99,108,117,100,101,32,60,115,116,100,105,111,46,104,62,10,105,110,116,32,109,97,105,110,40,41,10,123,10,32,32,32,32,105,110,116,32,105,44,32,107,59,10,32,32,32,32,99,104,97,114,32,115,91,93,32,61,32,1,59,10,32,32,32,32,102,111,114,40,105,61,48,59,115,91,105,93,33,61,49,59,43,43,105,41,112,114,105,110,116,102,40,34,37,99,34,44,115,91,105,93,41,59,10,32,32,32,32,102,111,114,40,107,61,48,59,115,91,107,93,59,43,43,107,41,112,114,105,110,116,102,40,34,37,99,37,100,34,44,32,107,32,63,32,39,44,39,32,58,32,39,123,39,44,32,115,91,107,93,41,59,10,32,32,32,32,112,114,105,110,116,102,40,34,44,48,125,34,41,59,10,32,32,32,32,102,111,114,40,43,43,105,59,115,91,105,93,59,43,43,105,41,112,114,105,110,116,102,40,34,37,99,34,44,115,91,105,93,41,59,10,32,32,32,32,114,101,116,117,114,110,32,48,59,10,125,10,0}; | |
for(i=0;s[i]!=1;++i)printf("%c",s[i]); | |
for(k=0;s[k];++k)printf("%c%d", k ? ',' : '{', s[k]); | |
printf(",0}"); | |
for(++i;s[i];++i)printf("%c",s[i]); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment