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 10PRINT "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.
Copyright © 2026 eLLeNow.com All Rights Reserved.