Computer Science, asked by UnbanirayaMitra, 1 month ago

Write a program in QBASIC to take input of a number and print whether the number is positive, negative or zero.​

Answers

Answered by pinkyyadav098120
0

Answer:

QBasic Programming

REM. INPUT “ENTER ANY NUMBER”; N. IF N > 0 THEN. PRINT N; IS POSITIVE NUMBER” ELSEIF N < 0 THEN. ...

DECLARE SUB CHECK (N) INPUT “ENTER ANY NUMBER”; N. CALL CHECK (N) SUB CHECK (N) IF N > 0 THEN. ...

USING FUNCTION PROCEDURE. DECLARE FUNCTION CHECK$ (N) INPUT “ENTER ANY NUMBER”; N. PRINT N; “IS “; CHECK$(N)

Similar questions