How do you print the multiplication tables in qbasic?

1 answer

Answer

1116102

2026-07-25 10:50

+ Follow

To print multiplication tables in QBasic, you can use nested loops. The outer loop iterates through the numbers 1 to 10 (or any desired range), while the inner loop multiplies the current number by each number in the same range. Here's a simple example:

<code class="language-qbasic">FOR i = 1 TO 10

PRINT "Table of"; i FOR j = 1 TO 10 PRINT i; "*"; j; "="; i * j NEXT j PRINT NEXT i

</code>

This code will display the multiplication tables for numbers 1 to 10.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.