answersLogoWhite

0

I'm not too sure that I understand exactly what you mean by 'add a square'...?! Thus, I will attempt to answer the question using multiple different ways; hoping that, least, 'one' of these answers might be right...

==>

CLS

PRINT "PROGRAM: Twelve Times Tables Number Square"

PRINT

FOR intTimes% = 1 TO 12

FOR intTables% = 1 TO 12

sum% = intTimes% * intTables%

noOfSpaces% = 0

IF LEN(STR$(sum%)) = 2 THEN noOfSpaces% = 2

IF LEN(STR$(sum%)) = 3 THEN noOfSpaces% = 1

PRINT sum%; SPC(noOfSpaces%);

NEXT

PRINT

NEXT

END

<==

...QBASIC Code/End.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you add odd numbers only in qbasic from 1 to 10?

CLS FOR eachNum%=1 TO 10 STEP 2 PRINT eachNum% NEXT


Do you need statement numbers in QBASIC?

Statement numbers were a feature of BASIC, and while QBASIC supports them, they are by no means necessary.


How do you add numbers in qbasic?

-- Think of a name for the sum, like 'S'.-- Tell qbasic what 'S' is the sum of.S = 41 + 61 + 2 + 84 + 136-- If you want to see it on the screen, thenPRINT Sand the sum pops up. It looks like this on the screen:324


How add 2x2 matrix in qbasic?

8


How to sort the sum of numbers in qbasic?

You use the relevant formula.


How do you print numbers as even numbers in a loop in qbasic?

To print even numbers in a loop in QBasic, you can use a FOR loop to iterate through a range of numbers and check if each number is even. An even number can be identified using the modulus operator (MOD). Here's a simple example: FOR i = 1 TO 20 IF i MOD 2 = 0 THEN PRINT i END IF NEXT i This code will print all even numbers from 1 to 20.


To print even nobetween 10 and 100 on qbasic command?

You need a code that can run to print even numbers between 10 and 100 using the qbasic command.


How do you find the median for groups if numbers?

you add the numbers together than divide that by 2, after that you add how many numbers there are then subtract 2


What if there are 2 numbers in the median?

If there are 2 numbers as the median, you find the mean of those 2 numbers. (add both numbers and divide by 2)


What are the 2 types of data allowed in QBASIC?

the two types of data used in Qbasic is numeric data and alpha numeric data.


What are the numbers when you add you get -3 when multiplied you get 40?

There are no two real numbers that do. Using complex numbers, these two do: (-3/2 + i&radic;151/2) &amp; (-3/2 - i&radic;151/2) Two numbers that add to -3 and multiply to -40 are -8 &amp; 5 Two numbers that add to 3 and multiply to -40 are 8 &amp; -5 Two complex numbers that add to 3 and multiply to 40 are (3/2 + i&radic;151/2) &amp; (3/2 - i&radic;151/2)


How do you find the product of five numbers in Qbasic?

Most computer languages use the asterisk, "*", for multiplication.