# Write a program to check weather number is even or odd.
Algorithm:-
- Start
- Input Number n
- if (n%2==0)
- display number is even
- else display number is odd
- Stop
Flow chart:-
Program:-
#Check weather number is even or odd
n=int(input("Enter a Number:\n"))
if(n%2==0):
print("Given Number is Even Number")
else:
print("Given Number is Odd Number")
Output of Above Python Code:-For More...
Watch Complete Lecture 20 Video
----------------coming soon------------------
0 comments:
Post a Comment