Sunday, August 9, 2015

Even number and odd number determination using python

__author__ = 'Polo-Dev'
x = float(input("Enter your number: "))
if x % 2 == 0:
    print('The number is Even')

else:
    print('This number is odd')

No comments:

Post a Comment

css snippet for blogger code highlighting

code, .code {     display: block;     background: beige;     padding: 10px;     margin: 8px 15px; }