Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num_insects = int(input())
- output = f'{str(num_insects)}'
- while True:
- if num_insects * 2 > 100:
- break
- output += " "
- output += str(num_insects*2)
- num_insects = num_insects*2
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement