Just for the fun of it: programming recursive functions in CBM Basic cannot be done - it leads to an ?OUT OF MEMORY error.
BUT
In WimBasic it can be done. For example, calculating a factorial:
Code: Select all
10 A$(0)="1"
20 A$(1)="I*FNF(I-1)"
30 DEF FNF(I)=EVAL A$(SGN(I))
40 PRINT FNF(3)
Regards,
Wim.