Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
10 rem Function definition
|
||||
|
||||
20 rem ** 1. Function defined as formula. An obsolete way - does not work properly with integer formal parameters (e.g. x%).
|
||||
30 def fnmultiply(a, b) = a * b
|
||||
|
||||
40 rem ** Call the functions
|
||||
50 print multiply(3,1.23456)
|
||||
60 print fn multiply(3,1.23456)
|
||||
70 end
|
||||
|
||||
200 rem ** 2. Function defined as subroutine returning a value
|
||||
210 sub multiply(a,b)
|
||||
220 multiply = a*b
|
||||
230 end sub
|
||||
Loading…
Add table
Add a link
Reference in a new issue