C Program to Check Whether a Number is Positive or Negative

In this example, you will learn to check whether a number (entered by the user) is negative or positive.
Positive and negative numbers in a number line

To understand this example, you should have the knowledge of following C programming topics: