Write a Program in Python : Check number is odd or even

 


Ask the user to enter a number. Check number is even or odd, also check if the number is less or equal to zero that is an invalid number.

Hint:

  • use modular operator (%)
  • use input("") to take value from user     

Enter a number : Check odd or even :44
This is Even Number 

0 Comments