Answers for "a program where you get two numbers as a lower limit and upper limit. Display all the even numbers between lower and upper limit"

0

a program where you get two numbers as a lower limit and upper limit. Display all the even numbers between lower and upper limit

items = []
for i in range(100, 401):
    s = str(i)
    if (int(s[0])%2==0) and (int(s[1])%2==0) and (int(s[2])%2==0):
        items.append(s)
print( ",".join(items))
Posted by: Guest on June-07-2020

Code answers related to "a program where you get two numbers as a lower limit and upper limit. Display all the even numbers between lower and upper limit"

Python Answers by Framework

Browse Popular Code Answers by Language