diff options
author | root <root@olpc-laptop.(none)> | 2007-08-22 05:00:29 (GMT) |
---|---|---|
committer | root <root@olpc-laptop.(none)> | 2007-08-22 05:00:29 (GMT) |
commit | 2b9f9f54ab9daf6cba39638e2dd318fc4f36ca82 (patch) | |
tree | 0be358d1056be117c33022a2c9abf2ba48bafe91 | |
parent | baafbdaf3c3a545da39a6f9b6e61835417f8f28d (diff) |
fibonacci series
-rw-r--r-- | data/math/fibonacci | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/data/math/fibonacci b/data/math/fibonacci new file mode 100644 index 0000000..660cbf0 --- /dev/null +++ b/data/math/fibonacci @@ -0,0 +1,5 @@ +a, b = 0, 1 +while b < 1000: + print b, + a, b = b, a+b + |