Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

odd or even python

num = int(input("Number: "))
mod = num % 2
if mod == 0:
    print(f"{num} is even")
else:
    print(f"{num} is odd")
 
PREVIOUS NEXT
Tagged: #odd #python
ADD COMMENT
Topic
Name
6+6 =