The program to find whether a number is positive or negative is discussed here. Given a number as input, find whether the number is positive or negative.
DESCRIPTION
If the number is greater than 0, print “Positive”.
If the number is less than zero, print “Negative”.
Input & Output format:
Input consists of 1 integer.
Sample Input and Output 1:
56
Positive
Sample Input and Output 2:
-56
Negative
@@coding::1@@
@@coding::2@@
Recommended Programs