Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check even or odd in single line

n=9
print("Odd" if n%2 else "Even")
 
PREVIOUS NEXT
Tagged: #check #odd #single #line
ADD COMMENT
Topic
Name
8+4 =