Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- </head>
- <body>
- <h1>Despasito</h1>
- <script>
- var n = prompt("Podaj n:");
- essa = 1;
- while (n > 0)
- {
- essa = essa * n ;
- n-- ;
- }
- document.write(essa);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement