Site pages
Current course
Participants
General
Topic 1
Topic 2
Topic 3
Topic 4
Topic 5
Topic 6
Topic 7
Topic 8
Topic 9
Topic 10
Topic 11
Topic 12
Topic 13
Topic 14
Topic 15
Topic 16
Topic 17
Topic 18
Topic 19
Topic 20
Topic 21
Topic 22
Topic 23
Topic 24
Topic 25
Topic 26
Topic 27
Topic 28
Topic 29
Topic 30
Topic 31
Topic 32
Topic 33
Topic 34
Topic 35
The LET Statement
This statement is used to assign a value to a variable. Its format is l– a statement number (label) v– Variable name expr– an expression eg : 10 LET A = 15 This will assign the value 15 to the variable A. 10 LET B = 4 + 5 *6 First the expression 4 + 5 * 6 is evaluated according to the rules of evaluation of expressions. The value is 34. This value is assigned to the variable B.Instead the above statement it can also be written as LET statement is optional in BASIC. 10 A=15 and 10 B=4+5*6 |
Last modified: Wednesday, 18 January 2012, 11:02 PM