Write a python program to print even numbers in a given range | Easycoding

Write a python program to print even numbers in a given range


In this tutorial we are going to learn how we can Write a python program to print even numbers in a given range


Even number :- An Even number is defined by if number is divisible by 2 then it is known as Even number .



num=int(input("Enter Range of the even numbers :"))


print("Even numbers are :",end=' ')


for i in range(num):

    if(i%2==0):

        print(i,end=' ')


Output :- 




Please comment down if you have any doubt 👇👇

Comments