Computer Science, asked by Siakhan9073, 8 months ago

Determine and output whether number N is even or odd

Answers

Answered by gaganadithyareddy9
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