answersLogoWhite

0

In QBASIC, you can create squares from 1 to 10 by using a loop and the LINE statement. Here's a simple example:

FOR i = 1 TO 10
    LINE (10, 10 * i)-(10 + i * 10, 10 * i + i * 10), , B
NEXT i

This code will draw squares of increasing size, starting from 1x1 to 10x10, with their bottom-left corners positioned vertically. Adjust the coordinates in the LINE statement to position the squares as needed.

User Avatar

AnswerBot

3w ago

What else can I help you with?

Related Questions

Write a qbasic program to print the squares and cubes of first 10 natural numbers?

10 CLS 20 FOR n = 1 to 10 30 PRINT n, n^2, n^3 40 NEXT n 50 PRINT: PRINT: PRINT "Touch 'x' to go again, any other key to end." 60 INPUT a$ 70 IF a$ = "X" or a$ = "x" THEN 10 80 END


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

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


How many squares are there from 1 to 100?

there are 10 squares if you count 100


How many 1-cm squares are on each side of a 10-cm cube?

-9


Find the squares of 1 to 10?

1 squared = 1. 10 squared = 100


How many squares millimeters make 1 squares meters?

1 000 000


How do you make 41 with the three squares and the two squares?

3 squares: 36 + 4 + 1 2 squares: 25 + 16


How do you make 3 squares by taking 1 stick out?

First lay out 13 sticks to make 3 squares with a sick over. Then take 1 stick out. What is left is 3 squares. Simple!


How many squares in a 10 by 10 grid?

There are 100 squares in a 10 by 10 grid.To discover the total number of squares in any square or rectangular grid, multiply the number of squares along two adjacent sides and you will arrive at the correct answer everytime.From Someone Else:The grid itself is a square alone; think about it, that's 1 on top of your 100.Look closer. There are actually 385 squares


What is the perfect squares 1-10?

11


If you had 10 squares and 5 were shaded what would the decimal number be and why?

5 of 10 shaded would be 1/2 or 0.5 of the total number of squares.


Want to know coding in qbasic-print your name 10 times?

PRINT "What is your name ?" INPUT NAM$ CLS FOR N = 1 TO 10 PRINT NAM$ NEXT N