Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python even or odd

injd = int(input('Enter a number'))
n = injd % 2
if n > 0:
  print('This is an odd number')
else:
  print('This is an even number')
 
PREVIOUS NEXT
Tagged: #python #odd
ADD COMMENT
Topic
Name
2+4 =