answersLogoWhite

0


Best Answer

num%=9

CLS

PRINT "The square of: "; num%; " = "; num%*num%

END

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

8y ago

Use a counted loop.

for x=1 to 10 step 1

print x

print x*x

next

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a programme in basic to assign a number and print its square?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What happens when you run a programme he meant what all?

What happens when you run a programme.. he meant what all the basic steps that O/S would take??


The command used to execute a BASIC programme?

Assuming a BASIC program is loaded into memory, the correct command to execute a BASIC program is: RUN. If you would like to start your program at a particular point in the execution, you may use RUN [#], where [#] is the line number you would like to start execution at.


Why is a square root called a square root?

One definition of "root" is "the basic cause, source, or origin of something." The source of a perfect square is the number that was multiplied by itself to create it: the root of the square, the square root.


What basic functions have no x-intercept?

Those that have a negative number under the square root. It then has no x-intercept.


What is an example of a non perfect square?

Well, the basic idea is that every positive number is the square of some number. For example, 2 is the square of a number known as the square root of 2; 3 is the square of a number known as the square root of 3; etc. The "perfect squares" are the squares of integers. That would make all other numbers "non-perfect squares", though this term is not usually used in practice.


What has the author Lucy McConville written?

Lucy McConville has written: 'Profiling progress in an adult basic education programme'


What is the square root formula?

The formula of square root is basic once you learn it. To figure out the square root of a number you must know what a square number is. A square number is the product of a multiplication problem such as 7x7, 123x123 and 14x14. So the square root of 7 is 49. A trick to figuring out the square root of a number is adding consecutive odd number to the previous problem.


Why cant you evaluate the square root of negative twenty five using real numbers?

using basic math principles, you can't find the square root of a negative number because in order for a number to be a square root, you have to multiply it by itself to get your radical. since a negative times a negative and a positive times a positive are both positive, it is impossible to find the square root of a negative number


What is the basic unit of area?

square kilometer


What are the three basic shapes?

The three basic shapes are rectangle, triangle, and square


How can assign a value to a variable in GB Basic?

to simply assign a variable a numeric value a=10 anything=12 etc for string variables a$="sweet" ex$="happy christmas" etc to assign a value by input input"enter numerical value";numeric input"enter string value";string$ i hope that clears it up


Change a square metre to square root?

It is not possible to do so. A square metre is a measure of area in 2-D space. A square root is a pure number, with no dimensions. According to the very basic rules of dimensional analysis, any attempt to change one to the other is flawed.