Python Program to check whether the number is even or odd without using % operator Posted by Shrinidhi Katti Get link Facebook X Pinterest Email Other Apps num=int(input("Enter a number")) if((num//2)*2==num): print(num,"is even number") else: print(num,"is odd number") Comments
Comments
Post a Comment