Advertisement
DvDty

bets

Jan 18th, 2022
1,040
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let total = 0
  2. let max = 137761
  3. let current = 1000
  4. let bets = []
  5.  
  6. while(total < max) {
  7.     total += current
  8.     bets.push(current)
  9.     current *= 2
  10. }
  11.  
  12. bets.pop()
  13. console.log(bets)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement