21 lines
300 B
Plaintext
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
|