9. positive, negative or zero
CLS
INPUT ''Enter any number''; N
IF N = 0 THEN
PRINT ''Given number is positive'';
ELSE IF N<0 THEN
PRINT ''Given number is negative''
ELSE
PRINT ''Given number is zero''
END IF
END
INPUT ''Enter any number''; N
IF N = 0 THEN
PRINT ''Given number is positive'';
ELSE IF N<0 THEN
PRINT ''Given number is negative''
ELSE
PRINT ''Given number is zero''
END IF
END
Comments
Post a Comment