Check the number is positive or negative in algorithm
Answers
Answered by
3
Explanation:
ALGORITHM TO FIND WHETHER NUMBER IS POSITIVE, NEGATIVE OR ZERO (IS ELSE-IF ELSE STRUCTURE)
STEP 1. Num <-- 0
STEP 2. Read Num
STEP 3. Is (Num > 0) Then
Begin
Print “Positive”
End
Else if (Num<0) Then
Begin
Print “Negative”
End
Else
Begin
Print “Zero”
End
Similar questions