Objective: Write a program to check given number is even or odd
num = int(input("Enter a number: "))
if (num%2==0):
print("This is even number")
else:
print("This is Odd Number")
Output:
Hello, my name is G Krishna. I'm Creating this blog for the students who are beginners.
Learn More →
No comments:
Post a Comment