Even Odd Number in Python
Write a Program in Python to check if a Number is an even or odd number.
1 2 3 4 5 | Number4Testing = int(input("Enter a Number4Testingber: ")) if (Number4Testing % 2) == 0: print( "{0} is Even Number4Testing".format(Number4Testing)) else: print("{0} is Odd Number4Testing".format(Number4Testing)) |
Output
Enter a Number4Testingber: 5
5 is Odd Number4Testing