Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = int(input())
- sum = 1
- while num >= sum:
- print(sum)
- sum = sum * 2 + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement