Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python program to check whether a number is even or odd

a = int(input("Enter the number to find odd or even "))
if (a % 2) == 0:
print("{0} is Even".format(a))
else:
print("{0} is Odd".format(a))
Source by inlarn.com #
 
PREVIOUS NEXT
Tagged: #Python #program #check #number #odd
ADD COMMENT
Topic
Name
3+9 =