answersLogoWhite

0

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:

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

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

User Avatar

AnswerBot

2mo ago

What else can I help you with?

Continue Learning about Basic Math

Write a qbasic program to accept a no and print it multiple table?

Cls print the multiples tables of 1 to 5 for x=1 to 5 for y=1 to 10 print x;"*";y;"=";x*y next y print print next x end


How do you do Qbasic programs?

type: PRINT "I like chocalate!"


Write a qbasic program to display A NEW LINE?

In QBasic, you can display a new line using the PRINT statement. To create a new line, you can simply use an empty PRINT statement. Here’s a simple example: PRINT "This is the first line." PRINT ' This will create a new line. PRINT "This is the third line." This program will display the first line, then move to a new line, followed by the third line.


What are the QBASIC keywords?

QBASIC keywords are reserved words that have special meanings and functions within the QBASIC programming language. They include commands like PRINT, INPUT, IF, FOR, NEXT, and END, which control the flow of the program and perform specific actions. These keywords cannot be used as variable names, as they are integral to the syntax and operation of QBASIC. Understanding these keywords is essential for writing effective QBASIC programs.


How do you print even number in qbasic?

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

Related Questions

What is the symbol for multiplication in QBasic?

====== FOR tablesNo%=1 TO 12 CLS PRINT "PROGRAM: "; tablesNo%; "X Tables:-" PRINT FOR timesNo%=1 TO 12 PRINT timesNo%; " X "; tablesNo%; " = "; timesNo%*tablesNo% NEXT PRINT PRINT "Press [SPACEBAR] key to continue..." SLEEP NEXT END


Write a qbasic program to accept a no and print it multiple table?

Cls print the multiples tables of 1 to 5 for x=1 to 5 for y=1 to 10 print x;"*";y;"=";x*y next y print print next x end


How do you do Qbasic programs?

type: PRINT "I like chocalate!"


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.


Write a program in qbasic to print the multiplication table of an input number?

This is a homework assignment. write homework assignments for you because you need to do this yourself or you will not learn the skills that the assignment is trying to teach you. However if, while trying to do your assignment, you find a specific problem that you need help with, WikiAnswers will help you with these specific questions (e.g is this 'xxxxx' qbasic statement correct). ==== Both the above examples can be adjusted to print out the 15 x tables/or else, the 15 times tables square. HINT: A> In the first case the user types in the number 15; then, presses Enter. B> In the 2nd case you simply change both tablesNo%=/timesNo%= to say 15 instead of 12.


Write a qbasic program to display the multiplication tables from 1 to 10?

Writing this QBASIC code purely on the fly...; without actually testing out if it works/or, not... CLS FOR tablesNo%=1 TO 10 FOR timesNo%=1 TO 10 PRINT timesNo%*tablesNo%; " "; NEXT PRINT NEXT END NOTE: The numbers are not yet formatted to line up perfectly straight with one another.


What is the most efficient strategy for multiplication?

Learn your multiplication tables


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

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


How do you print kamal kama kam ka k this pattern in qbasic?

QBASIC CODE/START... ==== ...QBASIC CODE/END.


Write a program in qbasic to make a hut using print statemant?

a triangle then a square :)


Who invented the multiplication tabels?

While the multiplication tables are sometimes attributed to Pythagoras the oldest known multiplication tables were used by the Babylonians about 4000 years ago. These used a base of 60. The oldest known tables using a base of 10 are the Chinese decimal multiplication tables on bamboo strips dating to about 305 BC, during China's Warring States period.


Where can you see the multiplication tables for 1-100?

When I was growing up, we had to memorize the full set of multiplication tables from 1 to 12. Multiplication Tables are standard 1 to 12 (not 1 to 100). Students must learn the times tables for 1 to 12, before they can apply those tables for 13 through to any number.You can find Multiplication Tables 1-12 online or as charts for sale. Or, do what we did as kids: make your own chart and color or decorate the chart.