mirror of
https://github.com/sigmasternchen/fibonacci
synced 2025-03-15 08:08:58 +00:00
12 lines
160 B
Text
12 lines
160 B
Text
![]() |
#!/usr/bin/bc
|
||
|
v1 = 1
|
||
|
v2 = 1
|
||
|
print 1, "\n", 1, "\n"
|
||
|
for(i = 0; i < 10; i++) {
|
||
|
v3 = v1 + v2
|
||
|
v1 = v2
|
||
|
v2 = v3
|
||
|
print v3, "\n"
|
||
|
}
|
||
|
quit
|