a program in c language to validate or check weather  a given  number is positive or negative using the if statement.

Output:
Enter any number:
5
Number 5 is a positive

Explanation
Include the #include<stdio.h> Standard Input-Output Library header file to ensures that the functions for input and output processes are accessible.
int main() function definition starts the execution of the program.
then subsequently we declare a variable n to store a number provided by the user.
We ask the user to enter a any number using printf() function and read the entered input number using standard input scanf() function.
Then We use the if statement to checked whether number n is greater than 0 or not. If the given number n is greater than zero so, we shown that the number n is a positive number.
If the number given n is less than 0 we show that the number is negative using printf().
If the number n is zero 0 neither negative nor positive we show that the number n is equal to zero 0.
Finally, the program returns 0 to specify successful execution of the program.


Other Topic:-->>Nested While Loop.
 -->> NEXT:2. Write a program in C to find the maximum number among given three numbers using nested if else statements only.
-->>ALL Conditionl statements Programs