Factorial by 51b

import std.stdio,std.bigint;void main(){BigInt a;for(int n;~scanf("%d",&n);writeln(a))for(a=1;n;)a*=n--;}

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

download

return to the top page