Only even numbers between 0 to 100 using for loop

#Write a program to print only even numbers between 0 to 100 using for loop 

for x in range(100):
    # Here Check if x is odd
    if x % 2 == 1:
        continue
    print(x)
 

output:  


 

Popular posts from this blog

Python Programming Practical no 1

Python Progrmming Practical No 3