Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Factorial</title>
- </head>
- <body>
- <?php
- $number = $_GET['number'];
- $arr = [];
- for ($i=0; $i < $number; $number--) {
- array_push($arr, $number);
- }
- echo(array_product($arr));
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement