Header Ads

Python Program to Check Whether a Number is EVEN or ODD

Even, odd, python, program, even number, odd number, python program, check number is even, check number is odd, python program to check number is even, python program to check number is odd, Python Program to Check Whether a Number is EVEN or ODD, Prime, python, primer number, python prime number, check number is primer or not, python program  to check number is prime or not


What is EVEN or ODD Number?

If any number divided by 2 and its remainder is equal to 0 than we say number is EVEN. But if the remainder is equal to 1 then number is ODD

Even number are   :  0, 2, 4, 6, 8 , 10, …….
ODD number are  :  1, 3, 5, 7, 9, 11, …………….

Source Code Example:

a = int(input("Enter number:"))
if a%2 == 0:
   
print(a," is even")
else:
   
print(a, " is odd")



Questions : Write a program
  1. python program to check given number is even or odd
  2. python program to check if number is even or odd
  3. python program to check whether a number is even or odd
  4. python program to check whether the given number is even or odd
  5. python program to check no is even or odd
  6. write a python program to check whether a number is even or odd
  7. python program to check a number is even or odd
  8. python program to check if a number is even or odd
  9. python program to check the given number is even or odd
  10. write a python program to check the given number is even or odd


No comments

Powered by Blogger.