Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ shravan20
Avatar
bettman-latin
MrJithi
rlperez
4 changes: 4 additions & 0 deletions Languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ Hello there!!

## Code already developed in this programming language.

- BASIC
- Bash
- C
- C#
- C++
- Clojure
- Dart
- Fortran
- Go
- Haskell
- Java
Expand All @@ -21,6 +24,7 @@ Hello there!!
- Lua
- Matlab
- Miranda
- Octave
- PHP
- Powershell Script
- Python
Expand Down
13 changes: 13 additions & 0 deletions fibonacci_series/Clojure/clojure_fibonacci.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(defn fib
"Prints the first `n` fibonacci numbers.
Example:
user> (fib 8)
0N 1N 1N 2N 3N 5N 8N 13N ;; => nil"
[n]
(loop [i 0
f1 0N
f2 1N]
(when (< i n)
(print f1 " ")
(recur (inc i) f2 (+ f1 f2)))))