Header Ads

Python programs coding series - Number: Odd or Even




Check whether a number is Odd or Even


#Check whether the input is odd or even

x = int(input("Enter the number:"))

if x % 2 == 0:
    print (str(x)+" is Even")
else:
    print(str(x) + " is Odd")


Output

No comments

Theme images by sebastian-julian. Powered by Blogger.