@lakshayarora7/

ExemplaryEuphoricToad

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
## Determine whether the given integer is even or odd. Even numbers are multiples of 2, whereas odd numbers are not.

# Input from user
number = int(input("Enter a number to be tested: "))

# Logic: determining odd/even status using the modulus arithmetic operator
if number % 2 == 0:
    print(number, "is even.")
else:
    print(number, "is odd.")