Page 100 - TechPluse_C6_Flipbook
P. 100

String variable name should contain $ (Dollar) symbol at the end of the name. For example,

                      Name$ and Address$
                      Variable names are case sensitive i.e. Name and NAME are two different variables.

                  Program 1: To use the numeric variables.



















                  Program 2: To concatenate two or more string variables.





















                  Operators

                  Operators are special symbols in BASIC-256 that carry out arithmetic or logical computation. The
                  value on which the operator is operating is called the operand. BASIC-256 divides the operators
                  in the following categories.

                  Arithmetic Operators

                  Arithmetic operators are used to perform arithmetic operations between two operands. The
                  arithmetic operators are defined in the following table:

                                                                                                Example
                   Operator       Name        Description                                                     Output
                                                                                             (x=4 and y=2)

                       +         Addition     Adds values on both sides of the operator.          x + y          6
                       –       Subtraction    Subtracts right hand operand from left              x – y          2
                                              hand operand.

                       *      Multiplication Multiplies values on either side of operator.         x * y         8




               98       Premium Edition-VI
   95   96   97   98   99   100   101   102   103   104   105