diff --git a/README.md b/README.md index 8a603a1..40159c0 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ The first 10 terms of the Fibonacci sequence written in various of programming l Excerpt from [Wikipedia](https://en.wikipedia.org/wiki/Fibonacci_sequence): ->In mathematics, the **Fibonacci numbers**, commonly denoted $F_n$, form a sequence, the **Fibonacci sequence**, in which each number is the sum of the two preceding ones. The sequence commonly starts from 0 and 1, although some authors start the sequence from 1 and 1 or sometimes (as did Fibonacci) from 1 and 2. Starting from 0 and 1, the first few values in the sequence are: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144. +> In mathematics, the **Fibonacci numbers**, commonly denoted $F_n$, form a sequence, the **Fibonacci sequence**, in which each number is the sum of the two preceding ones. The sequence commonly starts from 0 and 1, although some authors start the sequence from 1 and 1 or sometimes (as did Fibonacci) from 1 and 2. Starting from 0 and 1, the first few values in the sequence are: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144. -The Fibonacci spiral: an approximation of the golden spiral created by drawing circular arcs connecting the opposite corners of squares in the Fibonacci tiling +The Fibonacci spiral: an approximation of the golden spiral created by drawing circular arcs connecting the opposite corners of squares in the Fibonacci tiling ## 🌳 Similar projects diff --git a/src/C/CoffeeScript/fibonacci.coffee b/src/C/CoffeeScript/fibonacci.coffee new file mode 100644 index 0000000..19aedd3 --- /dev/null +++ b/src/C/CoffeeScript/fibonacci.coffee @@ -0,0 +1,6 @@ +a = 0 +b = 1 +for _ in [1..10] + console.log(a) + b += a + a = b - a \ No newline at end of file