Naina has written a program in which she has entered one number. She wants to check whether the entered
numberis divisible by 2 or not. Suggest her the appropriate condition for the same.
Answers
Answered by
1
I'm going to explain this in Python syntax:
x=float(input())
if x%2 == 0:
print(x, 'is divisible by 2')
else:
print(x, 'is not divisible by 2')
Answered by
4
Answer:
if(a%2==0)
Explanation:
I hope it is helpful
Similar questions