Check a Number is Positive or Negative (Pseudocode If Else Example)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | BEGIN NUMBER num OUTPUT "Enter a Number" OKU num IF num>0 THEN OUTPUT "Entered number is positive" ELSE IF num <0 THEN OUTPUT "Entered number is negative" ELSE OUTPUT "Entered number is zero" ENDIF END |
Flowchart of Pseudocode