scripts: add onetest_gesamt for arm64
[testub10.git] / gesamt / codeb_georg_fib_022.0
1 /* fibonacci */
2
3 /* F_0 = 0 */
4 /* F_1 = 1 */
5 /* F_n = F_{n-1} + F_{n-2} */
6
7 method fib(x)
8         var a := 0;
9         var b := 1;
10         var c := x;
11         while not (x < 2)
12         do
13                 c := a-(0-b);
14                 a := b;
15                 b := c;
16                 x := x-1;
17         end;
18         return c;
19 end;