Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve()
- {
- let arr = [];
- for(let i = 0; i < arr.length - 1; i++)
- {
- for (let j = 0; j < arr.lenght - 1; j++)
- {
- arr[j] += arr[j + 1]
- }
- }
- console.log(arr[0]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement