Advertisement
PIBogdanov

JS

Jan 27th, 2023
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve()
  2. {
  3.     let arr = [];
  4.  
  5.         for(let i = 0; i < arr.length - 1; i++)
  6.         {
  7.             for (let j = 0; j < arr.lenght - 1; j++)
  8.             {
  9.                arr[j] += arr[j + 1]
  10.             }
  11.         }
  12.            console.log(arr[0]);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement