Saturday, January 16, 2021

Python program for finding whether the given number is an odd or an even number

 n = int(input("Enter a number:"))

if n % 2 == 0:

    print(n, "is an even number")

else:

    print(n, "is an odd number")

No comments:

Post a Comment

The first hero I ever knew. ❤️ I Happy Fathers Day

 Hello everyone, on this special occassion of fathers day today, I would like to wish every lovely, striving fathers out there a very happy ...