Python Program to Check Whether a Number is EVEN or ODD
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
if a%2 == 0:
print(a," is even")
else:
print(a, " is odd")
Questions : Write a program
- python program to check given number is even or odd
- python program to check if number is even or odd
- python program to check whether a number is even or odd
- python program to check whether the given number is even or odd
- python program to check no is even or odd
- write a python program to check whether a number is even or odd
- python program to check a number is even or odd
- python program to check if a number is even or odd
- python program to check the given number is even or odd
- write a python program to check the given number is even or odd
Post a Comment