Science, asked by ishank934, 9 months ago

Write an alogrithm to inform the user if the number is positive or negative

Answers

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