The first 10 terms of the Fibonacci sequence written in various programming languages.
Excerpt from Wikipedia:
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.
We welcome contributions, to see our rules and guidelines on contributing please read CONTRIBUTING.md
- 05AB1E
- Ada
- AutoHotkey
- Bash
- BeanShell
- Brat
- C
- C#
- C++
- COBOL
- Carbon
- Clojure
- CoffeeScript
- Π++
- D
- Dart
- Elixir
- Erlang
- F#
- Felix
- Fish
- Fortran77
- Fortran90
- Go
- Groovy
- Haskell
- Icon
- Java
- JavaScript
- Julia
- Kotlin
- Lisp
- Lua
- MY BASIC
- Mamba
- Mojo
- MoonScript
- Nim
- Objective C
- Octave
- Odin
- PHP
- Pascal
- Perl
- PowerShell
- Python 2
- Python 3
- Q#
- R
- Ruby
- Rust
- RΓΆda
- Scala
- Scheme
- Scratch
- Smalltalk
- Snap!
- Squirrel
- Swift
- Turing
- TypeScript
- uBASIC
- V
- Vala
- VisualBasic
- Wolfram Language
- Wren
- XBasic
- Yabasic
- Zephyr
- Zig