Skip to main content

Posts

Showing posts with the label 3. Write a Python program to check whether a number is negative

ads1

Python Condition , 3.Write a Python program to check whether a number is negative, positive or zero.

3. Write a Python program to check whether a number is negative, positive or zero.   Solution :- no1 = int(input("Enter the number :- ")) if (no1 > 0):     print("The number is Positive",no1) elif (no1 <0):     print("The number is Negative",no1) else :     print("The number is Zero",no1) Output :-    

ads2