0% found this document useful (0 votes)
17 views1 page

Even Odd

The program checks if a number is odd or even by using the modulo operator to check if dividing a number by 2 has a remainder. If there is no remainder, the number is even and it prints 'Number Is Even', otherwise it prints 'Number Is Odd'.

Uploaded by

dinesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

Even Odd

The program checks if a number is odd or even by using the modulo operator to check if dividing a number by 2 has a remainder. If there is no remainder, the number is even and it prints 'Number Is Even', otherwise it prints 'Number Is Odd'.

Uploaded by

dinesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

#Write a Python Program to Check if a Number is Odd or Even

n=5
if n%2==0:
print('Number Is Even')
else:
print('Number Is Odd')

You might also like