The Assignment Method
We can assign values of information to variables.
Below are a number of examples.
•
•
Begin
n
surname := ‘Doe’ ;
n
initial := ‘J’ ;
n
price := 120.99 ;
n
age := 21 ;
n
Alive_now := TRUE ;
•
End.
Note that a
Char
and
String
value has single
quote marks encapsulating the values.
Variables Name
Information Held
Surname
Doe