Python program to print even numbers between 1 to 100.

Updated: Jul 17


Python program to print even numbers between 1 to 100.




Program:

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

Output:

2 4 6 8 10

;

;

;

;

98

Python program to print even numbers between 1 to 100 Video:





2,704 views0 comments

Recent Posts

See All

Python Program to Find Sum of Series 1²+2²+3²+….+n²

The mathematical formula to find the sum of 1²+2²+3²+….+n² is n(n+1)(2n+1)/6 So to find the sum of series we use this formula. Program: n = int(input("Enter Positive Number : ")) sum = 0 sum= (n*(n+