-- 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, then
PRINT S
and the sum pops up. It looks like this on the screen:
324
CLS FOR eachNum%=1 TO 10 STEP 2 PRINT eachNum% NEXT
You use the relevant formula.
Difference between QBASIC and GWBASIC?
The advantage of qbasic is that it is easy to learn, to start out,then one can move on to more complex, or advanced languages.
In order to Download Qbasic you may do one, both or none of these two things: 1.) Go to "http://www.softpedia.com/get/Programming/Coding-languages-Compilers/Qbasic.shtml" and click download or 2.) use "Google.com" with the keywords Qbasic free download to find another website with a free qbasic downlaod.
Statement numbers were a feature of BASIC, and while QBASIC supports them, they are by no means necessary.
8
CLS FOR eachNum%=1 TO 10 STEP 2 PRINT eachNum% NEXT
You use the relevant formula.
You need a code that can run to print even numbers between 10 and 100 using the qbasic command.
Most computer languages use the asterisk, "*", for multiplication.
you do this 10 print "0112358132134" use the whole of the thing
the extensions of qbasic are that, there are only 80 pixels to write in the qbasic
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
qbasic is important because its technology
There is no shortcut key of input in qbasic
The different types of operators in QBASIC are:Arithmetic OperatorsRelational OperatorsLogical Operators