Skip to content

Commit

Permalink
CoffeeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
ghluka committed Mar 29, 2024
1 parent 6267aaa commit ebef4a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<image src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Fibonacci_Spiral.svg/1920px-Fibonacci_Spiral.svg.png" height="250" alt="The Fibonacci spiral: an approximation of the golden spiral created by drawing circular arcs connecting the opposite corners of squares in the Fibonacci tiling" title="Fibonacci Spiral">
<image src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Fibonacci_Spiral.svg/1920px-Fibonacci_Spiral.svg.png" width="400" alt="The Fibonacci spiral: an approximation of the golden spiral created by drawing circular arcs connecting the opposite corners of squares in the Fibonacci tiling" title="Fibonacci Spiral">

## 🌳 Similar projects

Expand Down
6 changes: 6 additions & 0 deletions src/C/CoffeeScript/fibonacci.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
a = 0
b = 1
for _ in [1..10]
console.log(a)
b += a
a = b - a

0 comments on commit ebef4a7

Please sign in to comment.