answersLogoWhite

0

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

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Educational Theory
Related Questions

How do you write a Qbasic program to display these Numbers-0112358132134?

you do this 10 print "0112358132134" use the whole of the thing


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 stop a program from running in QBASIC?

To stop a program from running in QBASIC, you can press "Ctrl" + "Break" on your keyboard. This interrupts the program execution and returns you to the QBASIC command prompt. Alternatively, you can close the QBASIC window to terminate the program. If you want to exit gracefully, you can also use the END statement in your code to stop execution at a specific point.


What command statement terminates the qbasic program?

END '...END of program/halt program code execution. *NOTE*: There should be only 'one' END statement written inside of a QBASIC program. I have seen example code where they use multiple END statements; this is wrong!


How to sort the sum of numbers in qbasic?

You use the relevant formula.


Write the program in qbasic and add two numbers?

Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end


What is the explanation for the two modes of QBASIC?

(1) Immediate mode In this mode, QBASIC performs the command/instruction that we type in immediately after we press the enter key. (2) Program mode In this mode, the instructions/commands we type in are not performed as we type them in, but are first stored in the computer memory as a program. This program can be executed later, at a high speed.


How do you write a qbasic program to find area and circumerence of a circle?

Write a program that calculates the area of a triangle in QBASIC


How to make 1 to 10 squares in qbasic?

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.


Which is the shortcut key to continue running the QBASIC program?

In QBASIC, you can continue running a program using the shortcut key F5. This key starts the execution of the program from the beginning or resumes it if it was previously paused. If you need to run a specific line, you can use the F8 key to step through the program line by line.


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

a triangle then a square :)


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.