Computer Science, asked by yukhtha2008, 3 days ago

write a simple program to accept a value from the user and display wheather it is even or odd​

Answers

Answered by baratamakhilkumar28
0

Answer:

in python

n=int(input()

if n%2==0:

   print("even number")

else:

   print("odd")

Explanation:

Answered by ShashwatBro
0

Answer:

Please repost this question with the coding language in which you want the answer...

Explanation:

By the way I can write this program in Python language :->

n=int(input("Enter a number"))

if (n%2) == 0:

print ("The number is even")

else:

print("The number is odd")

Hope it helps you

have a good day mate

Similar questions