Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 212 Bytes

evenodd.md

File metadata and controls

10 lines (10 loc) · 212 Bytes
num = int(input("Enter any number: "))
flag = num%2
if flag == 0:
    print(num, "is an even number")
elif flag == 1:
    print(num, "is an odd number")
else:
    print("Error, Invalid input")
```python