Write a python program to check whether the given number is odd or even.
Project done through Code kata
What is CODEKATA?
Practising code kata will improve the programming skills. Code kata is a series of solving programs by taking the raw inputs. It enhances our profile.
Reference:https://www.guvi.in/code-kata
You are provided with a number check whether its odd or even.
Print “Odd” or “Even” for the corresponding cases.
Code:
num =int(input())
if (num % 2) == 0:
print(“Even”)
else:
print(“Odd”)
Language used: PYTHON 3
Description:
A 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.
Reference: https://www.guvi.in/courses