Write a Python program to print even numbers between 1 to 100.

Updated: May 18


Python program to print even numbers between 1 to 100.




Program:

for num in range(1,100): if num%2==0: print (num) num=num+1

Output:

2 4 6 8 10

;

;

;

;

98