]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/src/third_party/duktape-1.5.2/examples/guide/fib.js
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / prometheus-cpp / 3rdparty / civetweb / src / third_party / duktape-1.5.2 / examples / guide / fib.js
1 // fib.js
2 function fib(n) {
3 if (n == 0) { return 0; }
4 if (n == 1) { return 1; }
5 return fib(n-1) + fib(n-2);
6 }
7
8 function test() {
9 var res = [];
10 for (i = 0; i < 20; i++) {
11 res.push(fib(i));
12 }
13 print(res.join(' '));
14 }
15
16 test();