05-26-2025, 08:59 PM
The neat thing about functions is they can be imbedded in each other which a subroutine cannot:
Code: (Select All)
Print x(2), y(4), z(10)
Print x(y(z(10)))
End
Function x (a)
x = 1 + a
End Function
Function y (b)
y = 2 + b
End Function
Function z (c)
z = 3 + c
End Function