6. Variable Assignment¶
Assigning a variable is usually done in the following format
<variable>
=<expression>
The
<expression>
is calculated by the processor and modifies the value in the memory referenced by<variable>
.
|
Activity: CodeLens 6.1 (cl_l40_6a_en)
You can assign values to the same variable several times.
Print output (drag lower right corner to resize)
|
Activity: CodeLens 6.2 (cl_l40_6b_en)
In the previous example,
x
takes the last assigned value.
You have attempted 1 of 2 activities on this page