Write a Python function that prints the numbers from 100 to 200 inclusive using a while loop. Thank you.
Code is Given Below:
======================
#define function
def print_num():
i=100
#this loop will rum from i=100 to 200 and print value of i each
time
while(i<=200):
print(i)
i=i+1
#calling function print_num()
print_num()
Output:
=============
Code Snapshot:
=============
Get Answers For Free
Most questions answered within 1 hours.