Saturday, 3 November 2012

Check given number is even or Odd with If-else


## this program working with if-else statement..


num1=input('Emter Number: ')
if num1%2==0:
    print num1, 'is Even.'
else:
    print num, 'is odd.'

No comments:

Post a Comment