Skip to content

Instantly share code, notes, and snippets.

@Canadadry
Last active October 14, 2019 14:59
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 Canadadry/5b4b2aafc34511a72e02e4cab33f60ac to your computer and use it in GitHub Desktop.
Save Canadadry/5b4b2aafc34511a72e02e4cab33f60ac to your computer and use it in GitHub Desktop.
This is an unreadable c file... What can this program print ?
#include <stdio.h>
/* auteur inconnu */
long a=10000,b,c=8400,d,e,f[8401],g;
main()
{
for (;b-c;) f[b++]=a/5;
for (;d=0,g=c*2;c-=14,printf("%.4d",e+d/a),e=d%a)
for (b=c;d+=f[b]*a,f[b]=d%--g,d/=g--,--b;d*=b);
}
/* 158 caracteres ! */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment