Relative Frequency by TokusiN

char*i,s;main(j){for(;i=gets(&s);printf("%f\n",j/(i-&s-2.0)))for(j=0;*++i;j+=*i==s);}

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

download

return to the top page