WK_of_Angmar

Yahoo! Answers - Ashley's Question

Jul 26th, 2012
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.63 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <script type="text/javascript">
  5. //NOTE: This script is not greatly optimised and running it will probably cause your web browser to crash or hang should you have a poor computer.
  6. var combinations = new Array();
  7. combinations = [-1, -1, -1];
  8. for (var a = 0; a <= 99; a++) {
  9.     combinations[0]++;
  10.     for (var b = 0; b <= 99; b++) {
  11.         combinations[1]++;
  12.         for (var c = 0; c <= 99; c++) {
  13.             combinations[2]++;
  14.             document.write(combinations[0] + " - " + combinations[1] + " - " + combinations[2] + "<br>");
  15.         }
  16.         combinations[2] = -1;
  17.     }
  18.     combinations[1] = -1;
  19. }
  20. </script>
  21. </head>
  22. <body>
  23. </body>
  24. </html>
Add Comment
Please, Sign In to add comment