find the error in the above python program. it is to find out whether the no is even or odd??
Attachments:
Answers
Answered by
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
0
Answer:
n= int(input("Enter a no."))
if n%2==0:
print("n is even")
else:
print("n is odd")
Similar questions