write a program in q basic to accept a number from the user and check if it is even or odd and display the message accordingly
Answers
Answered by
0
Explanation:
QBasic Programming
REM. CLS. INPUT “ENTER ANY NUMBER”; N. IF N MOD 2 = 0 THEN. ...
DECLARE SUB CHECK (N) CLS. INPUT “ENTER ANY NUMBER”; N. ...
SUB CHECK (N) IF N MOD 2 = 0 THEN. PRINT N; “IS EVEN NUMBER” ...
DECLARE FUNCTION CHECK$ (N) CLS. INPUT “ENTER ANY NUMBER”; N. ...
FUNCTION CHECK$ (N) IF N MOD 2 = 0 THEN. CHECK$ = “EVEN NUMBER”
Similar questions