Example with parameters and some parameter transfer

Here you see a function that 'generates' numbers; also a table, complete with values of numbers, in relation to two declared numbers (via parameter transfer).

Results:

yyyy
xxxx
xxxx
xxxx
start generated and intelligent output
end generated and intelligent output
xxxx
xxxx
xxxx
yyyy

Comments:

You see that if 15 is programmed as factor (=15), and if 25 is programmed as number (=25), the table produces 14 rows of calculations.

Remarks:

Remark 1: How you can produce 15 rows of calculations?

Remark 2: In normal scripts 'writeln' is seldom used. Programmers prefer fields for output.

Enschede, 20 jan. 2000; updated jan. 28, 2003