wap in python to display the entered number is odd or even
Answers
Answered by
0
Explanation:
See this example:
num = int(input("Enter a number: ")) if (num % 2) == 0: print("{0} is Even number". format(num
Answered by
0
Answer:
number is even if it is perfectly divisible by 2. When the number is divided by 2, we use the remainder operator % to compute the remainder. If the remainder is not zero, the number is odd.
Similar questions