Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <?php
- ini_set('display_errors',1);
- function fact($x)
- {
- $return = 1;
- for ($i=2; $i <= $x; $i++) {
- $return = gmp_mul($return, $i);
- }
- return $return;
- }
- echo fact(1000). "\n";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement