Write an alogrithm to inform the user if the number is positive or negative
Answers
Answered by
3
Answer:
ALGORITHM TO FIND WHETHER NUMBER IS POSITIVE, NEGATIVE OR ZERO (IS ELSE-IF ELSE STRUCTURE)
Num <-- 0.
Read Num.
Is (Num > 0) Then. Begin. Print “Positive” End. Else if (Num<0) Then. Begin. Print “Negative” End. Else. Begin. Print “Zero” End.
Similar questions
Science,
5 months ago
Science,
5 months ago
Physics,
9 months ago
India Languages,
9 months ago
Physics,
1 year ago