Re: Fibonaci

2001-09-14 Thread Leon Brocard
[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

Fibonaci

2001-09-13 Thread lars
Hi Here is the fibonaci function # # fibo.pasm # # int fibo(int i) { # int a,b,c = 0; # if(i == 1 || i == 2) { #a = 1; # } else { #i = i - 2; #a = 1; #b = 1; #while(i != 0) { # c = a; # a = a + b; # b = c; # i--; #} # } # return a; # } # # I1