Write a Python function that prints the numbers from 100 to 200 inclusive using a while loop. Thank you.
def print_numbers():
i=100
while i<=200:#loop till i is 200
print(i,end=" ")#print i value and increment i
i+=1
print_numbers()#call function
Screenshots:
The screenshots are attached below for reference.
Please follow them for output and proper indentation.
Please upvote my answer. Thank you.
Get Answers For Free
Most questions answered within 1 hours.