Python Program to check given number is Odd or Even

Python Program to check given number is Odd or Even


 number=int(input("Enter first number:"))

if number%2==0:

    print(f"The given number {number} is even")

else:

    print(f"The given number {number} is odd")

print("End of program")


Output:

Enter first number:13

The given number 13 is odd

End of program

टिप्पणी पोस्ट करा

0 टिप्पण्या