Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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))
 
PREVIOUS NEXT
Tagged: #odd #checker
ADD COMMENT
Topic
Name
5+8 =