WRITE A PROGRAM IN QBASIC TO PRINT THE MULTIPLICATION TABLE OF A NUMBER ENTERED BY THE USER UP TO 30.
Answers
Answered by
12
Answer:
CLS. INPUT "ENTER ANY NUMBER"; N. FOR I = 1 TO 10. PRINT N; "X"; I; "="; N * I. NEXT I. ...
DECLARE SUB MUL (N) CLS. INPUT "ENTER ANY NUMBER"; N. CALL MUL (N) END. ...
USING FUNCTION PROCEDURE. DECLARE FUNCTION MUL (N) CLS. INPUT "ENTER ANY NUMBER"; N. ...
FUNCTION MUL (N) FOR I = 1 TO 10. PRINT N; "X"; I; "="; N * I. NEXT I.
Explanation:
Answered by
6
Explanation:
CLS
INPUT "ENTER ANY NUMBER'' ;A
FOR I = 1 to 10
PRINT A: "X" ; I; "='' ; N×I
NEXT I
END
Similar questions