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