The DEF FN command helps to avoid repetition. And thus it helps to write simpler and more maintainable programs.
Here is the typical usage.
DEF FNF(N)=N+N PRINT FNF(5) PRINT FNF(36) ...
BASIC-256 has full SUBROUTINE and FUNCTION blocks. Please see the ducumentation. http://doc.basic256.org/doku.php?id=en:function
Log in to post a comment.
BASIC-256 has full SUBROUTINE and FUNCTION blocks. Please see the ducumentation.
http://doc.basic256.org/doku.php?id=en:function