Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 203 Bytes
# Odd and Even Python Program
# Eg: Odd - 1, 3, 5, 7, ...
# Eg: Even - 2, 4, 6, 8, ...
num = int(input("Enter a number: "))
if num % 2 == 0:
print("Number is Even")
else:
print("Number is Odd")
You can’t perform that action at this time.