Header Ads

You are required to write a program using range function

You are required to write a program using range function in python which print the numbers in descending order, decremented by 2 starting from 100 e.g. 100, 98, 96, 94 ……... 

Solution:

for num in range(100, -1, -2):

    print(num, end=" ")


No comments

Powered by Blogger.