Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

odd or even checker

a = int(input("Enter the number: "))
if (a % 2) == 0:
    print("{0} is even".format(a))
else:
    print(" {0} is odd ".format(a))
Source by beginnersbook.com #
 
PREVIOUS NEXT
Tagged: #odd #checker
ADD COMMENT
Topic
Name
3+4 =