Sunday, August 9, 2015

positive and negative number determination using python

__author__ = 'Polo-Dev'
x = float(input("Enter Your Number :"))
if x > 0:
    print('positive number')
elif x == 0:
    print('zero')
else:
    print('negative number')

No comments:

Post a Comment

css snippet for blogger code highlighting

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