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
Social Sciences,
5 months ago
Chemistry,
5 months ago
Business Studies,
5 months ago
Physics,
11 months ago
India Languages,
11 months ago
Physics,
1 year ago