write a program to accept a number from the user and display if it is a positive or negative number
Answers
Answered by
1
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
I think it will help you
Similar questions
Environmental Sciences,
4 months ago
Science,
8 months ago
Computer Science,
8 months ago
Math,
1 year ago