Next: The structure of a
Up: Programming Help
Previous: how to use this
The mathematical conventions in QBASIC are
2^(1/2) for
, SQR(13) for
,
LOG(2) for the natural logarithm
, etc.
With these, one can use QBASIC as a calculator.
For instance the instruction
PRINT LOG(1+2^(1/2))
will print the decimal value of the expression
.
This probably is the simplest program to begin with. It is so short that there is
no point in saving
it.
The real power comes from repetitive operations explained in Section
.
Send comment