Sidebar Ad

Categories

Even or Odd Number Finder In Python

In This we will learn how to make a program in python to find the entered number is Even or Odd

Code :

 

#EvenODD
print("Program To Find Entered Number is even or odd")
n=int(input("Enter Number: "))
if n%2==0:
    print("The Entered Number ",n ,"Is Even Number")
else:
    print("The Entered Number ",n ,"Is Odd Number")

Output :

When giving the value as 10 , the output is Even Number
1

When giving the value as 1 , the output is Odd Number
2

In This Way , You Can Create Python Program To Find Entered Number Is Odd Or Even

I'm Tech Expert, Programmer , Web Developer, Owner Of this site and much more 😁

    Leave Your Comment

    Your email address will not be published.*