Anjeev Singh Academy

Python Program to check given number is odd or even

Python Program: Number is Odd or Even

##############################
# Language : Python
# Topic: Check given Number is Odd or Even
# Author : Anjeev Singh
#############################

num = int(input("Enter a Number: "))

if num % 2 == 0:
    print(num, "is an Even Number")
else:
    print(num, "is an Odd Number")


#End of program

Output:

Enter Number: 10

10 is an Even Number


Sorry! You cannot copy content of this page. Please contact, in case you want this content.

Scroll to Top