Saturday, January 16, 2021

Python program for finding whether the given number is an odd or an even number

 n = int(input("Enter a number:"))

if n % 2 == 0:

    print(n, "is an even number")

else:

    print(n, "is an odd number")

No comments:

Post a Comment

How to Fight Overthinking or Negative Thoughts?

How to Combat Overthinking or Negative Thoughts? 1. Don’t Fight Your Thoughts Trying to suppress or control negative thoughts often backfire...