[EMAIL PROTECTED] sent the following bits through the ether: > Here is the fibonaci function Here are slightly cleaner (could even be used for testing purposes) fibonacci and factorial example files. I'd say bundle them in as examples and prod me until I do the test suite.... Leon -- Leon Brocard.............................http://www.astray.com/ Iterative Software...........http://www.iterative-software.com/ ...
# Some simple code to print some Fibonacci numbers # Leon Brocard <[EMAIL PROTECTED]> print "The first 20 fibonacci numbers are:\n" set I1, 0 set I2, 20 set I3, 0 set I4, 1 REDO: eq I1, I2, DONE, NEXT NEXT: set I5, I4 add I4, I3, I4 set I3, I5 print I3 print "\n" inc I1 branch REDO DONE: end
# Some simple code to print some factorials # Leon Brocard <[EMAIL PROTECTED]> print "The first 15 factorials are:\n" set I1, 0 set I2, 15 set I3, 1 REDO: eq I1, I2, DONE, NEXT NEXT: inc I1 mul I3, I3, I1 print I3 print "\n" branch REDO DONE: end