T
Three Headed Monkey
What does bellow C program calculate?
I tried my best but couldn't figured it out.
#include <stdio.h>
main()
{
long a=1000,b=0,c=2800,d,e=0,f[2801],g;
for(;b-c f[b++]=a/5;
for(;d=0,g=c*2;c-=14,printf("%.4ld",e+d/a),e=d%a)
for(b=c;d+=f*a,f=d%--g,d/=g--,--b;d*=b);
}
I tried my best but couldn't figured it out.
#include <stdio.h>
main()
{
long a=1000,b=0,c=2800,d,e=0,f[2801],g;
for(;b-c f[b++]=a/5;
for(;d=0,g=c*2;c-=14,printf("%.4ld",e+d/a),e=d%a)
for(b=c;d+=f*a,f=d%--g,d/=g--,--b;d*=b);
}