next up previous contents
Next: The structure of a Up: Programming Help Previous: how to use this

Computing

   The mathematical conventions in QBASIC are 2^(1/2) for tex2html_wrap_inline1697 , SQR(13) for tex2html_wrap_inline1699 , LOG(2) for the natural logarithm tex2html_wrap_inline1703 , 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 tex2html_wrap_inline1705 . 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 gif.



Send comment