fib.while
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Fri, 23 Nov 2012 19:28:10 +0000
changeset 73 27469183da75
child 75 898c25a4e399
permissions -rw-r--r--
tuned

{ n := 9;
     minus1 := 0;
     minus2 := 1;
     temp := 0;
     while n > 0 do  {
       temp := minus2;
       minus2 := minus1 + minus2;
       minus1 := temp;
       n := n - 1
     };
     fib_res := minus2
}