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
If you have any doubt and suggestion Please let me know