changeset 83 | bd61b03b9eaa |
parent 80 | 191daa3ee29e |
child 84 | 719fd738d2a0 |
82:06c3ec0b452e | 83:bd61b03b9eaa |
---|---|
1 /* Fibonacci Program |
1 /* Fibonacci Program |
2 input: n |
2 input: n |
3 output: fib_res */ |
3 output: fib_res */ |
4 |
4 |
5 n := 90; |
5 n := 19; |
6 minus1 := 0; |
6 minus1 := 0; |
7 minus2 := 1; |
7 minus2 := 1; |
8 temp := 0; |
8 temp := 0; |
9 while n > 0 do { |
9 while n > 0 do { |
10 temp := minus2; |
10 temp := minus2; |