PRINT "hello world!"
        hello world!
        There are different types of variables for different types
of data, further discussion of data types is included in later sections and the appendix to this tutorial.
It won't hurt to skip that part, but it may help to read it over quickly.
        To make a variable a particular data type, all you need to do is place the symbol
of that data type at the end of the variable. As shown in examples below, the % describes the data type, which is integer.
        Variable names can be pretty much anything, except words that already have some pre-defined meaning in the language, like PRINT or CLS for example.
Also variable names can contain numbers, but cannot be numbers, or start with a number, for example:    
A1% is a valid integer value. but 1A% is not.
We can use Variables to store computed values, or they can be used to compute values. Example:
A1% = 1 + 2
or
A1% = A1% + 2
A1% = 5
        PRINT A1%
        5
        PRINT "The value of A1 is", A1%
        The value of A1 is                 5
        The last thing we will discuss here is the placing the value of a variable in between two pieces of
text. Example:
        A1% = 10
        PRINT "I Think that"; A1%; "is a good number
        I Think that 10 is a good number
    Back     |     Tutorial Part 1     |     Next     |