Python program to print 10 even numbers in reverse order


Program:

a=20

while a>=2:

print(a)

a=a-2

Output:

20

18

16

14

12

10

8

6

4

2

Python program to print 10 even numbers in reverse order Video:







1,071 views0 comments

Recent Posts

See All

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+