Check Number Is Positive Or Negative

The program takes the given integer and checks whether the integer is positive or negative. Take the integer which you want to check as input and store it in a variable number. Using if, else statements check whether the integer is greater or lesser than zero. If it is greater than or equal to zero, then print the output as “it is a positive number”. If it is lesser than zero, then print the output as “it is a negative number”. Here we go for a program to Check Number Is Positive or Negative.

Example:

Output:

Example:

Program To Check Number Is Positive Or Negative Or Zero.

Example Using Nested If Else

Output:

Top Book Suggestion

The two books on C Programming Language that I Personally Recommend. I really loved reading these books. These books are listed for quality content, easy steps, and affordable price. You can get it from Amazon and Flipkart. 

 

Check The Price On Amazon:

1. C Programming Beginner’s Guide

2. Head First C: A Brain-Friendly Guide

Check The Price On Flipkart:

1. Introduction to C Programming 

2. Head First C: A Brain-Friendly Guide

Pin It on Pinterest

Share This