122k views
5 votes
WRITE A PROGRAM IN QBASIC TO PRINT THE MULTIPLICATION TABLE FROM 1 TO 12.

User Gurkan
by
7.9k points

1 Answer

5 votes
REM Multiplication Table from 1 to 12

FOR i = 1 TO 12
FOR j = 1 TO 12
PRINT i; " x "; j; " = "; i * j
NEXT j
NEXT i


In this program, we use two nested FOR loops to iterate through the numbers from 1 to 12. The outer loop iterates through the first number (i), and the inner loop iterates through the second number (j). For each pair of numbers (i, j), we print the product of i and j using the PRINT statement.
User Danmactough
by
8.3k points

Related questions

1 answer
4 votes
227k views
asked Feb 2, 2021 73.5k views
Vivek Kodira asked Feb 2, 2021
by Vivek Kodira
8.1k points
1 answer
5 votes
73.5k views