Programming Pandit

c/c++/c#/Javav/Python


Latest Update

Tuesday, February 27, 2024

Check given number is even or odd

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:









No comments:

Post a Comment