Professional Documents
Culture Documents
Exp 2
Exp 2
2
Aim: Write a program to check if a Number is Odd or Even.
Objectives:
● To study the basics of python programming.
Outcome: Students will be able to implement the basics of python programming.
Algorithm\Implementation Steps\Installation Steps:
1. Read the value of n.
2. If n>1
If n%2==0
Print the value of n.”Even number”
Else
Print the value of n,”Odd number”
3. Else
4. Print “invalid number”
Source Code:
Input and Output:
Conclusion: Thus, the Python program to find the given number is odd or even is
executed successfully and the output is verified.