# Finding positive and negative number

We can use python language to create a simple program that identifies whether the  number is positive or negative.

Below is the logic

1. Use if and else condition statement.
2. If number is less than 0 than number is negative.
3. If number is greater than 0 than number is positive.

In this blog we will ask user to enter any number. Using if..else condition statement to determine whether the number enter by user is positive or negative.

Getting input from user.

`num = int(input('Please enter number: '))`

Using if else condition to check whether number is greater than 0. If number is greater than 0, display number as positive otherwise display number as negative.

```if num > 0:
print('Number %s is Positive'%num)
else:
print('Number %s is Negative'%num)```

OUTPUT

```Program to find Positive and Negative number
Number 6 is Positive```

Running the same program with different value

```Program to find Positive and Negative number
Number -9 is Negative```

Complete Code

```print('Program to find Positive and Negative number')
num = int(input('Please enter number: '))
if num > 0:
print('Number %s is Positive'%num)
else:
print('Number %s is Negative'%num)```