No.16728
I like lolis no matter what
No.16737
>>16736Wrong thread? Though I don't see any thread this would be good for. Please don't post convention bullshit.
No.24168
01123581321…
No.24173
>>24168(defun fib (a b)
(write a)
(fib b (+ a b)))
(fib 0 1)
No.24176
#include <stdio.h>
void fib(int a, int b){
int c = a;
printf("%d\n", a);
a +=b;
b = c;
fib(a,b);
}
void main(){
int a = 0;
int b = 1;
fib(a,b);
}
No.24177
void main()
{
import std.stdio : writeln;
0.fib(1, 100).writeln;
}
pure int[] fib(int a, int b, int c)
{
immutable next = a + b;
int[] arr = [next];
if (next >= c)
return arr;
return arr ~ b.fib(next, c);
}
No.24184
a = [0, 1]
for n in range(100):
a.append(a[n] + a[n + 1])
print(a)