The keywords
They are constants that have special meaning to BASIC compiler. They include all BASIC commands, statements, functions, names and operator name. Refer to 12.7 for a list of keywords used in the BASIC language.
They are constants that have special meaning to BASIC compiler. They include all BASIC commands, statements, functions, names and operator name. Refer to 12.7 for a list of keywords used in the BASIC language.
A function is used in an expression to call a predetermined operation to be performed in an operand They must be used in conjunction with either a statement or a command Examples are shown in table below Functions Meaning SIN (x) The sign of x Cos (x + y) The cosine of the addition of …
They perform test on multiple relations, bit multiplication or Boolean operators and return a true (non-zero or false zero) value to be used in making decision Table 12.5 shows logical operators and their meanings. below are relational operators and their meaning Operator Operations NOT : Logical Complement AND : Conjunction OR : Disjunction (inclusive OR) …
They are used to compare two values. Their functions are shown in the table below Operator Relation tested Example = Equality X = Y < > Inequality X<> Y < Less than X < Y > Greater than X > Y < = Less than or equal to X< = Y > = Greater than …
They are used in solving arithmetic’s / mathematics. Table arithmetic operations + Addition A = A + B A = A + B – Subtraction A = A-B A = A –B * Multiplication Y = 2* X Y = 2x / Division T = X*Y T = xy/ ^ or ** Exponentiation Y= X*B^2 …
An expression is a rule for computing a value. Expressions in BASIC are classified into five main categories namely: 1. Arithmetic operation 2. Relational symbols / logic operations 3. Functional operators 4. Punctuation mark 5. Keywords