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
World Languages,
3 months ago
Social Sciences,
3 months ago
Science,
6 months ago
Computer Science,
6 months ago
Math,
10 months ago