rubyx-debugger/codes/fibo_while.soml
2015-11-10 19:46:21 +02:00

21 lines
300 B
Plaintext

class Object
int fibonaccit(int n)
int a = 0
int b = 1
n = n - 1
while_plus( n )
int tmp = a
a = b
b = tmp + b
n = n - 1
end
b.putint()
return b
end
int main()
int f = fibonaccit( 10 )
return f.puti()
end
end