Respuesta :
num_insects = 3
while num_insects <= 100:
print(num_insects, end=' ')
num_insects *=2
Following are the python program to the given question:
Program Explanation:
- Defining an integer variable "num_insects" that uses an input method with an int method that inputs value.
- After inputting a value a while loop that uses an input variable to its value that is less than equal to 100.
- Inside the loop, doubled up the num_insects value and prints its calculated value.
Program:
num_insects = int(input('Enter any value: '))#defining a variable "num_insects" that inputs integer value
while num_insects <= 100:#defining a while loop that checks integer value less than equal to 100
print(num_insects)#using print method to print calculated value
num_insects *=2#doubled up the num_insects value
Output:
Please find the attached file.
Learn more:
brainly.com/question/8817779
