Guest User

Untitled

a guest
Dec 18th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <script>
  2. var i=0;
  3. var x=0;
  4. test1 = [];
  5. test2 = [];
  6. test = [];
  7. for(i=0;i<9;i++){
  8. test1.push(i+1);
  9. }
  10. for(x=0;x<9;x++){
  11. test2.push(x+1);
  12. }
  13. for(i in test1){
  14. for(x in test2){
  15. test.push(test1[i]*test2[x])
  16. }
  17. }
  18. for (i in test){
  19. document.writeln("test["+i+"] = " + test[i] + "<br>");
  20. }
  21. </script>
Add Comment
Please, Sign In to add comment