Coding Through the Alphabet - Fibonacci in Julia
Julia is a high-level, high-performance, dynamic programming language well-suited to numerical analysis and computational science.
How to test
Prerequisites: Julia
- Ubuntu/Debian:
sudo apt install juliaorcurl -fsSL https://install.julialang.org | sh - macOS:
brew install julia - All platforms: https://julialang.org/downloads/
julia fibonacci.jl
Expected output:
0
1
1
2
3
5
8
13
21
34
Source Code
a = 0
b = 1
for _ in 1:10
println(a)
global a, b
a, b = b, a + b
end
Local Testing Screenshot
