VAR (varl,var2..varN)

The statement in a subroutine to which arguments are passed. This must be, with the exception of REM statements, the first statement in the subroutine. The variables must match the variable TYPE of the calling GOSUB, i.e., INTEGER maps onto INTEGER, REAL to REAL, STRING to STRING.

Program Example.

00100 REM Demonstration of the way the VAR statement is used
00110 REM with the GOSUB statement.
00120 INPUT K,J
00130 GOSUB [K, K*J] 1000
00140 INPUT K,J
00150 GOSUB [K+J, K+K*J] 1000
00160 END
01000 REM Subroutine to print information
01010 VAR (M,N)
01020 PRINT M,N,M+N
01030 RETURN

Try it

See also GOSUB