Computer Science, asked by mumonmodak26, 1 year ago

Check the number is positive or negative in algorithm

Answers

Answered by OrdinarySagarPatel
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