Answers for "find even number python"

8

program to find even numbers in python

m = int(input("Enter number"))
if m % 2 == 0:
    print(m,"is an even number")
else:
    print(m,"is an odd number")
Posted by: Guest on July-24-2020
10

how to check if a number is odd python

num = int(input("Enter a number: "))  
if (num % 2) == 0:  
   print("{0} is Even number".format(num))  
else:  
   print("{0} is Odd number".format(num))  
Posted by: Guest on May-21-2020
1

finding odd even python

number = int(input("Write a number:- "))
if number%2 == 0:
    print("Even number")
else:
    print("odd number")
Posted by: Guest on July-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language