Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sequence(input) {
- let num = Number(input[0]);
- let print = 1;
- while (print <= num){
- console.log(print);
- print = print * 2 + 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement