Tuesday, 22 October 2019

Display positive negative or zero

CLS
INPUT"Enter any number";N
IF N>0 THEN
PRINT"The number is positive"
ELSEIF N<0 THEN
PRINT"Given number is negative"
ELSE
PRINT"Given number is zero"
ENDIF 
END

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home