Determine and output whether number N is even or odd
Answers
Answered by
0
Answer:
Hey Buddy! This code works only in Python.
x = int(input('Enter a number: ')) #Take input
#Check if the number is even or odd
if x%2 == 0:
print(x, 'is an even number')
else:
print(x, 'is an odd number')
HOPE IT HELPS!!
Similar questions
Social Sciences,
4 months ago
History,
4 months ago
English,
9 months ago
Computer Science,
9 months ago
Math,
1 year ago
Math,
1 year ago