Python Program to check if given number is positive or negative
Write Python Program to check if given number is positive or negative
# Python Program to check if given number is positive or negative n = int(input("Enter the number :--> ")) if n > 0: print("The given number is positive") else: print("The given number is negative")
Output:
Run 1:
Enter the number :--> 8
The given number is positive
Run 2:
Enter the number :--> -8
The given number is negative