<?phpfunction s($a,$b,$c){echo substr(rtrim(gmp_strval(gmp_fact($a),$b),"0"),-1*$c);}s(10,6,3);?>
Standard input is empty
544
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!