Q. Write a program that return True if the input number is an even number, False otherwise.


You can understand by Watching video :-



Answer :-

x = int (input ("Enter the number "))

if x%2 == 0:
    print ("True")

else :
    print ("False")

Output :-

Enter the number 2
True

>>> 

Enter the number 564
True

>>>

Enter the number 524163
False

>>>




Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post