Write a program to check whether a given number is a non-zero integer number and is positive or negative?
Answers
Answered by
1
Answer:
Explanation:
Input a number from user in some variable say number . Check if(number < 0) , then number is negative. Check if(number > 0) , then number is positive. Check if(number == 0) , then number is zero.
Similar questions