CBSE BOARD X, asked by uniquebitch555, 1 year ago

find the error in the above python program. it is to find out whether the no is even or odd??

Attachments:

Answers

Answered by Anonymous
60

The correct code is:-

n=int(input("enter number"))

if(n%2==0):

print("even")

else:

print("odd")

.

.

.

hope it will help you mate..

Answered by thedragonslayer668
0

Answer:

n= int(input("Enter a no."))

if n%2==0:

  print("n is even")

else:

  print("n is odd")    

Similar questions