Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
DECLARE Multiply(N1:INT,N2:INT)
|
||||
|
||||
DEF A,B:INT
|
||||
|
||||
A=2:B=2
|
||||
|
||||
OPENCONSOLE
|
||||
|
||||
PRINT Multiply(A,B)
|
||||
|
||||
PRINT:PRINT"Press any key to close."
|
||||
|
||||
DO:UNTIL INKEY$<>""
|
||||
|
||||
CLOSECONSOLE
|
||||
|
||||
END
|
||||
|
||||
SUB Multiply(N1:INT,N2:INT)
|
||||
|
||||
DEF Product:INT
|
||||
|
||||
Product=N1*N2
|
||||
|
||||
RETURN Product
|
||||
|
||||
'Can also be written with no code in the subroutine and just RETURN N1*N2.
|
||||
Loading…
Add table
Add a link
Reference in a new issue