Program in C++ to check whether a number is a positive number, negative number or zero.
In the above C++ program to check whether the number is positive, negative or zero, We are using if condition since any number that is more than 0 will be positive and less than 0 will be negative. Sample Output: Enter a number : 34 The entered number is positive.