In this tutorial, we are going to learn a python program to find a number given as input from the user is even or odd.
Problem Statement
For any number that is input by the user, we have to check if it is even or odd. For example
Case1: If the user inputs number 51
then the output should be ‘odd’.
Case2: If the user inputs a number 100.
then the output should be ‘even’.
Step 1: Start
Step 2: take input from the user.
Step 3: if number is divisible by 2:
Print ‘even’
else:
Print ‘odd’
Step 4: Stop
Output 1

Output 2
