-->
Wednesday, June 29, 2022
Even or Odd check | Python Program
FindError
Home
Catagories
C Programs
C Graphics
Python Programs
About
contact
Home
About
Contact
Python Programs
Swapping using 3rd variable
Swpping without using 3rd variable
Even or Odd check
Add all digits of a number
Add all Even and Odd digits of a number
Check wether a given number is Even or Odd
Q. Write a Python program to check wether a given number is Even or Odd
Output
Source Code
// WAP to check wether a given number is Even or Odd n=int(input("Enter a number:: ")) if(n%2==0): print("This is an Even Number") else: print("This is an Odd Number")
Copy Code
Python Programs
Swapping using 3rd variable
Swpping without using 3rd variable
Even or Odd check
Add all digits of a number
Add all Even and Odd digits of a number
No comments:
Post a Comment
Newer Post
Older Post
Home
Contact Form
Name
Email
*
Message
*
No comments:
Post a Comment