Menu

#58 DEF FN command

closed
nobody
None
5
2017-03-28
2017-03-28
Serge
No

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)
...

Discussion

  • Jim Reneau

    Jim Reneau - 2017-03-28

    BASIC-256 has full SUBROUTINE and FUNCTION blocks. Please see the ducumentation.
    http://doc.basic256.org/doku.php?id=en:function

     
  • Jim Reneau

    Jim Reneau - 2017-03-28
    • status: open --> closed
     

Log in to post a comment.