Write a Python program to find postive or negative number


Introduction

I have used python 3.7 compiler for debugging purpose.. I have used python 3.7 compiler for debugging purpose.


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

  1. num = float(input("Input a number: "))
  2. if num > 0:
  3. print("It is positive number")
  4. elif num == 0:
  5. print("It is Zero")
  6. else:
  7. print("It is a negative number")
  8.  

Result

python language techstudy.org

     





Related Topics




Popular Posts