How to find odd number and even number python

 How to find odd numbers and even numbers Python


x =int(input("Enter value x:"))
   
if x % 2 == 0:
    print(x,"Is Even Number")
else:
    print(x, "Is Odd Number")

Output
Enter value x:10 10 Is Even Number




-

Post a Comment

Previous Post Next Post