# C Program To Check a Number is Positive or Negative

Hey Shouters!! Today we learn about the C Program to check a number is positive or negative.

In this program, we will use some of the basic concepts of programming.

If you are a beginner and do not know anything, learn concepts like Introduction to C Language, Structure of C Program, and Operators in C Language.

## Number Line in Mathematics-

In mathematics, we have a number line which represents how we will consider a number is positive or negative.

We have considered Zero (0) as the reference and the number on the right side of zero (0) is called positive numbers.

The number on the left side of the zero (0) are called negative numbers.

And the number 0 is neither positive or negative number.

### 1. C Program to check a number is positive or Negative using Relational Operator-

In this program, we will use a relational operator. If you do not know about it, check it Operators in C Language.

### 2. C Program to check a number is positive or negative using conditional operator

In this program, we will use conditional/ternary operator. This is a very important method.

If you do not know check the operator here.

### 3. C Program to check a number is positive or not using Functions-

In this method, will make a function and will send the value to the functions and function will solve the problem.

Shout Coders is mainly focusing on providing the best knowledge to the beginners in the programming.

For this, we have started the Multiple choice questions on the Social Media Handles.

Follow us on Social Media Now. Shout Coders