Multifactorials by

while 1:\x0d
    r=raw_input()\x0d
    a=1\x0d
    for f in range(int(r.rstrip("!")),0,-r.count("!")):a*=f\x0d
    print a

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

download

return to the top page