Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 223 Bytes

Positive or Negative number.md

File metadata and controls

13 lines (12 loc) · 223 Bytes

Positive or Negative

python code, to find positive or Negative number.

if x < 0:
   print 'NEGATIVE NUM'
elif x > 0:
   print 'POSITIVE NUM'
elif x == 0:
   print 'NUM IS 0'
else:
   print 'Invalid Input'