Computer Science, asked by dharmraj6598, 1 month ago

write a program in QBasic to print the table of any nunber entered by the user.​

Answers

Answered by ғɪɴɴвαłσℜ
3

\sf{\huge{\underline{\pink{Programme :-}}}}

DECLARE SUB MUL (N)

CLS

INPUT "2: ", n

CALL MUL (N)

print_table(n, 1)

END

SUB MUL (N)

FOR I = 1 to 10

IF i <= 10 THE

PRINT n;" * ";i;" = ";N*i

For (N,i+1)

END IF

END FUNCTION

\sf{\huge{\underline{\green{Result :-}}}}

2 * 1 = 2

2 * 2 = 4

2 * 3 = 6

2 * 4 = 8

2 * 5 = 10

2 * 6 = 12

2 * 7 = 14

2 * 8 = 16

2 * 9 = 18

2 * 10 = 20

_____________________________________

Similar questions