Advertisement
CR7CR7

Allocate

Feb 27th, 2022
1,308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let input = [
  2.     5  
  3.  
  4. ];
  5.  
  6. let print = this.print || console.log;
  7. let gets = this.gets || ((arr, index) => () => arr[index++])(input, 0);
  8.  
  9.  
  10.     var A= new Array(5);
  11.  
  12. for (var i=0; i<A.length;++i){
  13.  
  14. A[i]=i*5;
  15. }
  16. for (var i=0; i<A.length;++i){
  17. print(A[i]);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement