Conditional Structure Exercises
Write a program that asks the user for an integer and shows on the screen whether it is even or odd.
Solution:
n = int(input("Enter an integer: "))
if n % 2 == 0:
print("The number " + str(n) + " is even")
else:
print("The number " + str(n) + " is odd")
#Python Programming Importance
Hope You will learn Something. Happy Coding