Data update
This commit is contained in:
parent
61b93a2cd1
commit
5af6d93694
858 changed files with 20572 additions and 2082 deletions
22
Task/Function-definition/LDPL/function-definition.ldpl
Normal file
22
Task/Function-definition/LDPL/function-definition.ldpl
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
data:
|
||||
n is number
|
||||
|
||||
procedure:
|
||||
sub multiply
|
||||
parameters:
|
||||
x is number
|
||||
y is number
|
||||
result is number
|
||||
procedure:
|
||||
in result solve x * y
|
||||
end sub
|
||||
|
||||
# call the bare sub-procedure
|
||||
call multiply with 3 4 n
|
||||
display n lf
|
||||
|
||||
# create a statement for it
|
||||
create statement "multiply $ by $ in $" executing multiply
|
||||
|
||||
multiply 3 by 4 in n
|
||||
display n lf
|
||||
Loading…
Add table
Add a link
Reference in a new issue