Write a Python Program to Check if a Number is Odd or Even.
Write a Python Program to Check if a Number is Odd or Even.
Write a Python Program to Check if a Number is Odd or Even.
Program
def myfun():
num=int(input("Enter a number: "))
if(x%2==0):
print("This is a even number")
else:
print("This is a odd number")
if __name__=="__main__":
myfun()