Coding Through the Alphabet - Fibonacci in Yorick
Yorick is an interpreted programming language for scientific computing, developed at Lawrence Livermore National Laboratory. It is particularly strong at array operations and numerical computation.
How to test
Prerequisites: Yorick
- Ubuntu/Debian:
sudo apt install yorick - macOS:
brew install yorick
yorick -batch fibonacci.i
Expected output:
0
1
1
2
3
5
8
13
21
34
Source Code
a = 0;
b = 1;
for (i = 0; i < 10; i++) {
write, format="%d\n", a;
c = a + b;
a = b;
b = c;
}
Local Testing Screenshot
