Relative Frequency by pandamonium

char*p,*q;main(c,d){for(;gets(p=q=&c);printf("%f\n",d/(q-p-2.)))for(d=0;*++q;d+=*p==*q);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page