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

“Why Are You Sorry for Being Honest?” ❤️ | A Simple Lesson I Learned

https://youtube.com/shorts/LFsE2j8mGy4 Hi. So, I just want to share a recent experience that I had. Um, so I was in a hotel gym and uh there...