Write an algorithm to check whether entered number by user is positive or negative. Proper input, process, output
Answers
Answered by
1
Answer:
Algorithm To Find Whether A Number Is Positive Or Negative is given below:
1. Input a number from the user.
2. If number is less than zero, then it is a negative integer.
3. Else if number is greater than zero, then it is a positive integer.
4. Else, the number is equal to zero.
5. End.
Similar questions