Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

wap in python to check a number is odd or even

num = int(input("Enter a number: "))  
if (num % 2) == 0:  
  print(num ,"is even number
")  
#CODE BY VENOM STONE
else:  
  print(num,"is Odd number
")
#CODE BY VENOM STONE
 
PREVIOUS NEXT
Tagged: #wap #python #check #number #odd
ADD COMMENT
Topic
Name
9+1 =