FUNCTION0.txt example

Warning: if you clip this code into your program, look out for possible html code slipping in.

REM Example of FUNCTION

FUNCTION square_it(arg1 as INTEGER) AS INTEGER
	square_it=arg1*arg1
END


GLOBAL index AS INTEGER, index_squared AS INTEGER

FOR index=0 to 9
	index_squared=square_it(index)
	PRINT "\010\013", square_it(index)
NEXT