QUICK REFERENCE
|
Format
Descriptor for WRITELN
or WRITE
|
|
|
or
|
:<w>
:<w>:<d> |
|
where
|
<w>
is the field width; <d> is no. of decimal places |
|
Example Statement:
Example Output: |
writeln('Take
pi =', 3.14159:5:2); Take pi = 3.14 |
|
Example Statement: |
writeln('Take pi =', 3.14:10:5); |
|
Example Statement:
Example Output: |
writeln('My
lucky number is', 7:4, '.'); My lucky number is 7. |
EXERCISE
|
|
|
|
|
|
|
|
|
|
|
Multiplication
|