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

Updated: May 18, 2020


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



1,318 views0 comments

Recent Posts

See All
 

9555593818

Thakurdwara, Uttar Pradesh 244601, India

  • Facebook
  • Twitter
  • LinkedIn