Advertisement
biswasrohit20

a

Mar 28th, 2021
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. num_insects = int(input())
  2. output = f'{str(num_insects)}'
  3. while True:
  4. if num_insects * 2 > 100:
  5. break
  6. output += " "
  7. output += str(num_insects*2)
  8.  
  9. num_insects = num_insects*2
  10. print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement