Basic program to find given number is negative or positive in python

num=15

if num>=0:

    if num == 0:

        print("zero")

    else:

        print("positive#")

else:

    print("negative#") 

The output isπŸ‘‡

TOP KEYWORDS πŸ‘‡

  • Write a program to check whether a number is positive or negative in Python 
  • Program to check whether a number is positive or negative or zero 

Post a Comment

0 Comments